<PackageReference Include="Relativity.Server.Utility.SDK" Version="14.2.7" />

EnumHelper

public class EnumHelper
Provides static methods for manipulating instances of Enum.
public EnumHelper()

public static Dictionary<int, string> GetEnumAsDictionary<T>()

Gets a dictionary of key value pairs representing enumeration values and their descriptions.

public static string GetEnumCaseStatement<T>(string columnName)

Gets a SQL CASE statement for the provided column name of the enum of type T.

public static string GetExecutionTypeDescription(Enum et)

Gets the value of the description attribute, if it exists on the provided Enum, otherwise it returns the ToString of the enum.