Geeks With Blogs

News Meta
Gruff Code Code and tech musings from Jesse Taber. If I call it a blog I'll feel bad when I don't update it every week. November 2010 Entries
Resolving Issue: “ReSharper auto-completion, live templates, and intellisense stop working in Visual Studio 2010”

This blog post has moved:

Posted On Tuesday, November 9, 2010 11:52 AM

Testing Enumeration Mappings
My coworker John Sonmez had a great blog post recently illustrating how to refactor a switch statement. In short, he outlined how to take a switch statement covering all known values of a C# Enumeration and convert it into a Dictionary “map” object allowing you to quickly determine what action to take given any valid enumeration value. I really like this approach as I think it leads to more readable code. The one thing that’s always bothered me about enumerations though is that they can change with ......

Posted On Tuesday, November 2, 2010 7:59 PM

Copyright © Jesse Taber | Powered by: