Get C# Enum type from value

DayOfWeek monday =
  (DayOfWeek)Enum.ToObject(
    typeof(DayOfWeek), 
    (int)DayOfWeek.Monday);
This entry was posted in c#. Bookmark the permalink.