Gets the values associated with the specified enum.
| C# | Visual Basic | Visual C++ |
public static TEnum[] GetValues<TEnum>() where TEnum : struct, new()
Public Shared Function GetValues(Of TEnum As {Structure, New}) As TEnum()
public: generic<typename TEnum> where TEnum : value class, gcnew() static array<TEnum>^ GetValues()
- TEnum
- The type of the enum.
array instance of the enum values