Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of 'var' in C#
Message
From
01/05/2010 07:12:56
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01462533
Message ID:
01462627
Views:
59
>>>(b) laziness :-}
>>
>>And laziness here IMHO is really a virtue, as it saves you from changing "var" as well if the type definition changes.
>
>A fair point. But, personally, if the type can be established I prefer to use it. Makes the code more readable (and leaves open the possibility of using it outside the current scope)

Beauty is in the eye of the beholder <g>. For me it itches in the "not as DRY as I like it" area.

let us disagree at a minor point and work at getting some code out!

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform