Categories
Etc

.net annoyances

Ugh. I’m using System.Enum’s built-in parsing bits, and I really like ’em. However, why would you provide a case-insensitive option on the Parse method, but not on IsDefined? That makes IsDefined less than useful. Now I have to try to parse and catch an exception if the parse fails, which just makes for ugly code, not to mention the slowdown with the exception handling. I hate it when the framework team does this crap.

Advertisements