Enum.IsDefined

Brad Abrams brought up an interesting point about using Enum.IsDefined. Don't use it unless you have to. It causes the CLR to reflect upon the enumeration. There is nothing necessarily wrong with this, but if you weren't expecting the performance hit...it will be a surprise.

I don't always typically blog about other blogs...but this is one worth noting if you are doing much with enums and parameter passing.

-Mathew Nolton

No Comments