How To assign Specific Data type instead of var in Following case
var provider = CultureInfo.InvariantCulture;
In visual studio you can see the type when hover on the var keyword :
CultureInfo provider = CultureInfo.InvariantCulture
CultureInfo nonInvariantCulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentCulture = nonInvariantCulture;
In visual studio you can see the type when hover on the var keyword :