Michael, MS> This is curious, and not covered in the C# language spec MS> that I can find. There appears not to be bounds checking MS> invoked when enums are passed as parameters.
DC> If it's important in your application you can perform DC> checking yourself pretty easily without bogging down all DC> uses of enums with needless value checking. Have a look at System.Enum.IsDefined, for instance. HTH, Stefan =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com