Click or drag to resize
EnumModelCreateFromEnumT Method
Creates a sorted array of records for an enum.

Namespace: VirtualRadar.Interface.View
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static EnumModel[] CreateFromEnum<T>(
	Func<T, string> getDescription,
	bool sortByDescription = true,
	Func<T, bool> filter = null
)
where T : struct, new()

Parameters

getDescription
Type: SystemFuncT, String
sortByDescription (Optional)
Type: SystemBoolean
filter (Optional)
Type: SystemFuncT, Boolean

Type Parameters

T

Return Value

Type: EnumModel
See Also