reply with real life example appreciated.
Thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted May 31, 2013, 2:52 AM
hi,
Var is an implicit type.Implicit means indirect way of defining variable types.
note that var define data type statically (compile time) not run time.
So you can use it anywhere.
Please refer to know more about var.
http://msdn.microsoft.com/en-us/library/bb383973.aspx\
http://www.dotnetfunda.com/articles/article1567-what-is-the-use-of-var-keyword-in-csharp.aspx
hope this will help you.
VulpesPosted May 30, 2013, 1:41 PM
http://www.c-sharpcorner.com/UploadFile/b942f9/when-should-you-use-the-var-keyword-in-C-Sharp/