EnumUtils Class
| 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.
public static class EnumUtils { }
Methods
|
FromInt32<T>(int)
(static)
Converts the specified |
|
GetEnumValues<T>()
(static)
Gets an array of all values of the specified enum class |
|
GetEnumValues(Type)
(static)
Gets an array of all values of the specified enum |
|
IsEnum<T>()
(static)
Returns whether |
|
IsEnum(Type)
(static)
Returns whether the specified |
|
Max<T>(T, T)
(static)
Returns the maximum value of the enum values |
|
Max<T>(T[])
(static)
|
|
Max<T>(IEnumerable<T>)
(static)
Returns the maximum value of the specified enum |
|
Min<T>(T, T)
(static)
Returns the minimum value of the enum values |
|
Min<T>(T[])
(static)
|
|
Min<T>(IEnumerable<T>)
(static)
Returns the minimum value of the specified enum |
|
ParseEnum<T>(string)
(static)
Parses the specified |
|
ParseEnum(string, Type)
(static)
Converts the specified |
|
ParseEnum<T>(string, T)
(static)
Parses the specified |
|
ParseEnumArray<T>(string)
(static)
Converts the specified |
|
ParseEnumArray(string, Type)
(static)
Converts the specified |
|
ParseEnumArray(string, Type, Char[])
(static)
Converts the specified |
|
ParseEnumArray(String[], Type)
(static)
Converts the specified array of |
|
TryParseEnum<T>(string, out T)
(static)
Converts the string representation of the name or numeric value to an enum of type
|
|
TryParseEnum(string, Type, out Enum)
(static)
Converts the string representation of the name or numeric value to an enum of the specified |