Geeks With Blogs
Sean's Blog My Development Blog July 2009 Entries
Unclear Use of C# var Keyword
C# 3.0 brought with it a plethora of great additions, such as LINQ, lambda expressions and anonymous types. With the inclusion of LINQ, Microsoft decided that it was often difficult to determine the return type from a LINQ expressions. As such, they opted to include the var keyword, which is used to implicitly define a type. The type is determined by the compiler at compile time, making it strongly typed, so it is not analogous to the Visual Basic variant type. While this has some value in aiding ......

Posted On Saturday, July 25, 2009 9:17 AM

Copyright © Sean Fao | Powered by: GeeksWithBlogs.net