Class EnumExtensions
- Namespace
- AetherUtils.Core.Extensions
- Assembly
- AetherUtils.Core.dll
Provides extension methods for manipulating Enum objects.
public static class EnumExtensions
- Inheritance
-
EnumExtensions
- Inherited Members
Methods
ToDescriptionString<T>(T)
Get the string associated with a DescriptionAttribute attribute on an Enum value.
public static string ToDescriptionString<T>(this T val) where T : Enum
Parameters
valT- The Enum value to get the description string of.
Returns
- string
- The description string or Empty if no DescriptionAttribute was found.
Type Parameters
T- The Enum type to get the attributes of.