CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

String to Enumerator

246 Views
Copy Code Show/Hide Line Numbers
public static T EnumConverter<T>(string value)
    {
        return (T)Enum.Parse(typeof(T), value);
    }
by Giuliano Lemes
  July 28, 2009 @ 6:43am
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate