Geeks With Blogs
Path Notes of a Kodefu Master blog

Taking advantage of language features can make sleeker, easier to maintain code. One of these language features are array initializers.

Have you ever created an array, then assigned each element in the array? This incurs many lines of code with no tangible benefit. Check out this code from the NameMangler class in LINQ to XSD.


Read More

Posted on Wednesday, June 10, 2009 12:39 PM Kodefu | Back to top

Comments on this post: Refactor to Array Initializer

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Chris Eargle | Powered by: