Tag Archives: enumerated values

Convert enum values to and from strings in C#

The System.Enum class provides several methods that convert enum values to and from strings. Some particularly useful methods include: GetName Returns the string name of an enum value. GetNames Returns an array of strings holding the names of an enum‘s … Continue reading

Posted in enums, syntax | Tagged , , , , , , , , , , , , | 3 Comments