Click here to Skip to main content
15,905,136 members
Articles / Programming Languages / C# 4.0

A Generic enum Parser in C#

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
7 Jun 2011CPOL 12.4K   1  
The ParseEnum method will not work where we use a version below .NET Framework 4.0 because of the TryParse method. So those who need to use it in below .NET Framework 4.0 or in .NET Framework 4.0, the following extension methods will be helpful:public static TEnum ParseEnum(this...

Views

Daily 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
Australia Australia

Comments and Discussions