EnumHelper Class

Version 1.1.28
.NET Framework 4.8
This class has been marked as obsolete: Use the EnumUtils class instead.
Namespace Skybrud.Essentials.Enums
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Utility class with various static helper methods for working with enums.

[Obsolete("Use the EnumUtils class instead.")]
public static class EnumHelper { }

Methods

Gets an array of all values of the specified enum class T.

Parses the specified str into the enum of type T. If str cannot be parsed, an exception of type EnumParseException will be thrown instead.

Parses the specified str into the enum of type T. If str cannot be parsed, the value fallback will be returned instead.

Converts the string representation of the name or numeric value to an enum of type T. The return value indicates whether the conversion succeeded.