# Class EnumerationExtensions Namespace: [CapyKit.Extensions](CapyKit.Extensions.md) Assembly: CapyKit.dll Provides static extentions methods for providing additional functionality for types. ```csharp public static class EnumerationExtensions ``` #### Inheritance [object](https://learn.microsoft.com/dotnet/api/system.object) ← [EnumerationExtensions](CapyKit.Extensions.EnumerationExtensions.md) #### Inherited Members [object.Equals\(object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)), [object.Equals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)), [object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring) #### Extension Methods [ObjectExtensions.UpdateProperties\(object, object\)](CapyKit.Extensions.ObjectExtensions.md\#CapyKit\_Extensions\_ObjectExtensions\_UpdateProperties\_System\_Object\_System\_Object\_) ## Methods ### GetDescription\(Enum\) An extension method that gets a description. ```csharp public static string GetDescription(this Enum enumeration) ``` #### Parameters `enumeration` [Enum](https://learn.microsoft.com/dotnet/api/system.enum) The enumeration to act on. #### Returns [string](https://learn.microsoft.com/dotnet/api/system.string) The description if available, otherwise the string representation of the enumeration. ### GetName\(Enum\) An extension method that gets a name. ```csharp public static string GetName(this Enum enumeration) ``` #### Parameters `enumeration` [Enum](https://learn.microsoft.com/dotnet/api/system.enum) The enumeration to act on. #### Returns [string](https://learn.microsoft.com/dotnet/api/system.string) The name of the enumeration. ### GetPrettyName\(Enum\) An extension method that gets a human readable name. ```csharp public static string GetPrettyName(this Enum enumeration) ``` #### Parameters `enumeration` [Enum](https://learn.microsoft.com/dotnet/api/system.enum) The enumeration to act on. #### Returns [string](https://learn.microsoft.com/dotnet/api/system.string) The human readable name of the enumeration. ### GetValue\(Enum\) An extension method that gets an integer value representing the enumation. ```csharp public static int GetValue(this Enum enumeration) ``` #### Parameters `enumeration` [Enum](https://learn.microsoft.com/dotnet/api/system.enum) The enumeration to act on. #### Returns [int](https://learn.microsoft.com/dotnet/api/system.int32) The integer value of the enumeration. ### Parse\(T, string\) A T extension method that parses a string into an enumeration. ```csharp public static T Parse(this T enumeration, string value) where T : Enum ``` #### Parameters `enumeration` T The enumeration to act on. `value` [string](https://learn.microsoft.com/dotnet/api/system.string) The value. #### Returns T A T. #### Type Parameters `T` Generic type parameter. ### Parse\(T, string, bool\) A T extension method that parses a string into an enumeration. ```csharp public static T Parse(this T enumeration, string value, bool ignoreCase) where T : Enum ``` #### Parameters `enumeration` T The enumeration to act on. `value` [string](https://learn.microsoft.com/dotnet/api/system.string) The string value of the . `ignoreCase` [bool](https://learn.microsoft.com/dotnet/api/system.boolean) True to ignore case. #### Returns T A T. #### Type Parameters `T` Generic type parameter.