Click or drag to resize
EnumModel.CreateFromEnum<T> 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: System.Func<T, String>
sortByDescription (Optional)
Type: System.Boolean
filter (Optional)
Type: System.Func<T, Boolean>

Type Parameters

T

Return Value

Type:EnumModel[]
See Also