Class EnumUtils
Enum Utilities
Inherited Members
Namespace: Microsoft.Graph.Communications.Common
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public static class EnumUtils
Methods
GetDescription(Enum)
Gets the enum's description attribute.
Declaration
public static string GetDescription(this Enum value)
Parameters
Type | Name | Description |
---|---|---|
Enum | value | The value. |
Returns
Type | Description |
---|---|
String | Enum's description |
Parse<TEnum>(String)
Parses the string into enum
Declaration
public static TEnum Parse<TEnum>(string value)
where TEnum : struct, IComparable, IFormattable, IConvertible
Parameters
Type | Name | Description |
---|---|---|
String | value | input string |
Returns
Type | Description |
---|---|
TEnum | Enum's parsed value |
Type Parameters
Name | Description |
---|---|
TEnum | Enum's type to output |