EnumExtensions ToList T  Method Cognex VisionPro 9.21
Creates a List with all keys and values of a given Enum class

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 83.0.0.0 (83.0.0.0)
Syntax

public static IEnumerable<KeyValuePair<T, string>> ToList<T>()
where T : struct, new()
Type Parameters

T
Must be derived from class Enum!

Return Value

Type: IEnumerable KeyValuePair T, String  
A list of KeyValuePair<Enum, string> with all available names and values of the given Enum.
See Also