Category: .Net

How to: Parse an Enumeration

  You can simply use the Enum.Parse() function as shown below: using System; [Flags] enum Colors { None=0, Red = 1, Green = 2, Blue = 4 }; public class Example { public static...