adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Range<T> Class / TryParse Method / TryParse(String,String,Range<T>) Method
The string to parse
The string that separates values in the range. The RangeSeparator of the returned Range will be set to this value.
Returns the parsed range


In This Topic
    TryParse(String,String,Range<T>) Method
    In This Topic
    Attempts to parse a Range from a string representation
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function TryParse( _
       ByVal source As String, _
       ByVal separator As String, _
       ByRef result As Range(Of T) _
    ) As Boolean
    public static bool TryParse( 
       string source,
       string separator,
       out Range<T> result
    )
    public:
    static bool TryParse( 
       String^ source,
       String^ separator,
       [Out] Range<T^>^ result
    ) 

    Parameters

    source
    The string to parse
    separator
    The string that separates values in the range. The RangeSeparator of the returned Range will be set to this value.
    result
    Returns the parsed range

    Return Value

    A boolean value indicating whether the source was successfully parsed.
    Remarks
    The source must be a valid string representation of a single T value or of two T values separated by the separator.
    See Also