adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / EnumHelpers Class / ParseEnum Method / ParseEnum<T>(String) Method


In This Topic
    ParseEnum<T>(String) Method
    In This Topic
    Parses an enum value from a string, which may contain either the text or numeric value for the enum.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ParseEnum(Of T As {New, Enum, Struct})( _
       ByVal source As String _
    ) As Nullable(Of T)
    public static Nullable<T> ParseEnum<T>( 
       string source
    )
    where T: new(), Enum, struct
    public:
    static Nullable<T^> ParseEnumgeneric<typename T>
    ( 
       String^ source
    ) 
    where T: gcnew(), Enum, value class

    Parameters

    source

    Type Parameters

    T
    See Also