This post originated from an RSS feed registered with .NET Buzz
by Frank Hileman.
Original Post: Vote to Remove Enum.IsDefined From All System.Drawing Members
Feed Title: Frank Hileman's Blog
Feed URL: http://weblogs.asp.net/frank_hileman/rss?containerid=13
Feed Description: Vector Graphics with VG.net, MyXaml, and Visual Studio Integration
Enum.IsDefined is an expensive call taking a significant amount of time, and boxing (allocating memory) on every call. There are numerous System.Drawing property setters that call Enum.IsDefined. Officially, Enum.IsDefined is recognized by MS as a problem and now its usage violates official .NET Framework Design Guidelines.
Speed up VG.net and other graphical applications, and reduce heap usage, by voting for this relatively minor change: