Skip to content

ServiceNow.Core

SNow.Core.Extensions.EnumExtensions

EnumExtensions.ToDescription<T>(T) Method

Get data from Description Attribute

csharp
public static string ToDescription<T>(this T type)
    where T : System.Enum;

Type parameters

T

Parameters

type T

Returns

System.String
The description text value

Released under the MIT License.