Method SetValuesAndLabels
SetValuesAndLabels<TEnum>()
public void SetValuesAndLabels<TEnum>() where TEnum : struct, Enum
Type Parameters
TEnumThe enum type to extract from
Remarks
This is a convenience method that converts an enum to a dictionary of values and labels. The enum values are converted to int values and the enum names become the labels.