.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.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.