David Findley's Blog

My little home in the cloud.

July 2006 - Posts

Great set of Mac Spoof Comercials.
Even though I'm primarily a PC guy I've thought that the recent set of Mac comercials were pretty clever. They're cutsie enough to warrent a good spoofing though and thats exactly what the guys over ant truenuff did:

http://tv.truenuff.com/mac/

You know the best comedy has a certain ring of truth to it. :)

Posted: Jul 30 2006, 10:39 AM by findleyd
Filed under: ,
Can we get a generic Parse method on Enum in the next version of .NET?

I have one tiny pet peeve about Enum.Parse. It's so  verbose with the typeing (both meanings of the word).

Here's what you have to do today:

   1:  public enum MyEnum
   2:  {
   3:    One,
   4:    Two
   5:  }
   6:   
   7:  MyEnum me = (MyEnum)Enum.Parse(typeof(MyEnum), "One");

what I'd like to see is an overload of Parse that supported a generic param like this:

   1:  MyEnum me = Enum.Parse<MyEnum>("One");
Posted: Jul 05 2006, 05:29 PM by findleyd | with 4 comment(s)
Filed under:
More Posts