Click here to Skip to main content
15,915,763 members
Articles / Programming Languages / C#

'Extending' the Enum Class to Validate the Enum Values with the Flags Attribute

Rate me:
Please Sign up or sign in to vote.
4.58/5 (5 votes)
4 Jan 2008CPOL4 min read 62.4K   297   41  
Use extension methods to augment the enums to validate the values and more

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Decebal Mihailescu is a software engineer with interest in .Net, C# and C++.

Comments and Discussions