Var is implicit typed Variable.
var is the default data type.
variables that are declared at method scope can have an implicit type var. An implicitly typed local variable is strongly typed just as if you had declared the type yourself, but the compiler determines the type. The following two declarations of i are functionally equivalent:var i = 10; // implicitly typedint i = 10; //explicitly typed
Refer this Url :http://www.dotnetfunda.com/articles/show/1567/what-is-the-use-of-var-keyword-in-csharp
2015© C# Corner. All contents are copyright of their authors.
C# Corner. All contents are copyright of their authors.