Atulya Panda
What is var keyword ?
Posted by Atulya Panda in .Net | ASP.NET on Nov 26, 2012
  • 0
  • 2
  • 702
Do you know the answer for this question? Post it below.
Guest
Posted by keerthi rakasi on Feb 28, 2013
  • 0

var is the default data type.

Posted by lakshminarayana srinivasan on Nov 30, 2012
  • 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


Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.