Interviews4 answers
What is var keyword ?
4 Answers
Refer this Url :
http://www.dotnetfunda.com/articles/show/1567/what-is-the-use-of-var-keyword-in-csharp
Prakash LakshmananPosted Dec 15, 2014, 5:32 AM EST
Var is implicit typed Variable.
Manoj RawatPosted Aug 9, 2014, 4:51 AM EDT
var is the default data type.
keerthi rakasiPosted Feb 28, 2013, 6:56 AM EST
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 typed
int i = 10; //explicitly typed
lakshminarayana srinivasanPosted Nov 29, 2012, 11:26 PM EST
