4
Reply

What is var keyword ?

Atulya Panda

Atulya Panda

Nov 26, 2012
3.2k
0

    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

    Var is implicit typed Variable.

    Manoj Rawat
    August 09, 2014
    1

    var is the default data type.

    keerthi rakasi
    February 28, 2013
    1

    Refer this Url : http://www.dotnetfunda.com/articles/show/1567/what-is-the-use-of-var-keyword-in-csharp

    Prakash Lakshmanan
    December 15, 2014
    0