Posts

Showing posts from June, 2013

Convert a string to an enum

User Enum.Parse is your friend enum StatusEnum {Active,Inactive} StatusEnum MyStatus = (StatusEnum) Enum.Parse( typeof(StatusEnum), "Active");