Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / TypeEx Class / GetEnumValues<T> Method
Enum type.
Enum type.

In This Topic
    GetEnumValues<T> Method (TypeEx)
    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)
    [Extension()]
    public static IList<T> GetEnumValues<T>( 
       Type enumType
    )

    Parameters

    enumType
    Enum type.

    Type Parameters

    T
    Enum type.

    Return Value

    The list of values for that enum type.
    See Also