ComponentOne FinancialChart for WPF
C1.WPF Namespace / TypeEx Class / GetEnumValues<T> Method
Enum type.
Enum type.



In This Topic
    GetEnumValues<T> Method
    In This Topic
    Returns the values of an Enum type (Type.IsEnum == true).
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function GetEnumValues(Of T)( _
       ByVal enumType As Type _
    ) As IList(Of T)
    'Usage
     
    
    Dim enumType As Type
    Dim value As IList(Of T)
     
    value = TypeEx.GetEnumValues(Of T)(enumType)
    [Extension()]
    public static IList<T> GetEnumValues<T>( 
       Type enumType
    )
    [Extension()]
    public:
    static IList<T^>^ GetEnumValuesgeneric<typename T>
    ( 
       Type^ enumType
    ) 

    Parameters

    enumType
    Enum type.

    Type Parameters

    T
    Enum type.

    Return Value

    The list of values for that enum type.
    See Also