Request

Response

    EnumExtensions.GetDescription method

    Gets the description from DescriptionAttribute or enum name if no attribute exists.

    public static string GetDescription<T>(this T enumValue)
        where T : struct, Enum
    
    parameterdescription
    T The enum type.
    enumValue The enum value.

    Return Value

    Description string or enum name.

    See Also