Creates a List with all keys and values of a given Enum class
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
public static IEnumerable<KeyValuePair<T, string>> ToList<T>()
where T : struct, new()
public static IEnumerable<KeyValuePair<T, string>> ToList<T>()
where T : struct, new()
Public Shared Function ToList(Of T As {Structure, New}) As IEnumerable(Of KeyValuePair(Of T, String))Public Shared Function ToList(Of T As {Structure, New}) As IEnumerable(Of KeyValuePair(Of T, String))public:
generic<typename T>
where T : value class, gcnew()
static IEnumerable<KeyValuePair<T, String^>>^ ToList()
public:
generic<typename T>
where T : value class, gcnew()
static IEnumerable<KeyValuePair<T, String^>>^ ToList()
- 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.