I guess I don't get all the hoopla over var? What happens if you were to initialize your variables and use them elsewhere? List records = null; records = new List(); Also, what kind of overhead does var add to your applications when you use it everywhere? It's like a lot of new features in C# (don't get me started on extension methods). They were added to allow LINQ to be implemented, but should NOT be used in general, everyday programming tasks (unless you are using LINQ) Some mornings it just doesn't seem worth it to gnaw through the leather straps. - Emo Phillips
C
csharphacker
@csharphacker
Posts
-
Poor var (C#) -
Programming's Foul LanguageYou do realize you can mark up which exceptions are thrown in XML comments? I forget if that junk shows up in the intellisense though...
-
You know you need a break when...You start wondering why the menu at the resturant doesn't have any cool flyouts, and nothing happens when you click on the items