When should you use var keyword in C#?

When should you use var keyword in C#?

Check out Eric Lippert’s blog article http://blogs.msdn.com/b/ericlippert/archive/2011/04/20/uses-and-misuses-of-implicit-typing.aspx

See also http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c-sharp

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>