Hi
Another of the new feature in The C# 3.0 will be the declaration of implicitly typed local variables. This means that we can declare any local variable with the type var and it type will be inferred from the expression that is used to declare it.
This means that if we declare a local variable with type var (and there is no type named var in the scope) the declaration becomes implicitly typed local variable. Hence the following lines of code will be possible and correct in C# 3.0
var int1 = 10;
var decimal = 2.45;
var string = “Vikram Lakhotia”;
var intArray = new int[] {1,4,8,0,3};