More on to var or not to var (://URLFAN)
Discover what websites bloggers are mentioning right now.
Reading 1,670,815 feeds, parsing 105,069,644 posts, ranking 2,815,144 domains.
Lookup a website
Article Structure
7 paragraphs
2669 characters
4 images
8 outgoing links

More on to var or not to var

Post Date: Jul 19, 2008 3:31 a.m.
Ranked website: thejoyofcode.com (Ranks #71284 of 2,815,144)

For full text please visit source:
http://www.thejoyofcode.com/More_on_to_var_or_not_to_var.aspx


Yesterday, I posted a poll asking for peoples opinions on the use of the var keyword with non anonymous types.At the time of writing, the "No! It’s just for anonymous types" have the vote with 51% against 44% - and 5% not really caring (although the vote might have been slightly skewed by some of my friends campaigning:).I just found a post by Dare Obasanjo from earlier this year with the same title: C# 3.0 Implicit Type Declarations: To var or not to var.In it, he sites several references on the matter including two posts by a member of the Resharper team called ReSharper vs C# 3.0 - Implicitly Typed Locals and Varification -- Using Implicitly Typed Locals and, perhaps most compelling, the C# Reference which states: Overuse of var can make source code less readable for others. It is recommended to use var only when it is necessary, that is, when the variable will be used to store an anonymous type or a collection of anonymous types. This close...

Content suppressed by ://URLFAN, for full article visit source

Buzz Words mentioned in this article:

Dare Obasanjo
Typed Locals



More posts from www.thejoyofcode.com

Correct link
Source: http://www.thejoyofcode.com/Correct_link.aspx
Post Date: 2006-05-09 04:51:41
In case you followed the dead link on Jeremy Miller’s blog, this is what you were looking for: Quick Javascript Debugging Tip - it’s a cool post so check it out :) ...
Databinding and Nullable types in WinForms.NET
Source: http://www.thejoyofcode.com/Databinding_and_Nullab...
Post Date: 2006-05-10 14:50:17
Scenario You have an Entity Type with a Nullable property. You have a TextBox which is bound to that property. When the user clears the text in the TextBox, you want the value of your property to be set to null. Problem The result of the databinding will simply not succeed when clearing a TextBox which is bound to a Nullable type. Solution In this article I am going to show how you can do this by using an Extender Provider.Simply add a Component class to your pro...
Article mentioned at lhotka.net
Source: http://www.thejoyofcode.com/Article_mentioned_at_l...
Post Date: 2006-05-13 03:42:29
I was at the Patterns & Practices summit in Oslo last week, and during a conversation with Rockford Lhotka and one of my colleagues we discussed some ideas to get around the problem with databinding and nullable types. Rocky gave me some pointers in the right direction and was also kind enough to link to the article from his own blog. Thanks a lot Rocky! ...


Next Article | Previous Article


Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed, posts, or domain from ranking and analysis, please contact us.

://URLFAN (.15 G.Oct 06 08 11:01)
Contact Us - About ://URLFAN - Notify me when my site is added or updated. Add my RSS feed to ://URLFAN