ComponentOne FinancialChart for WPF
C1.WPF Namespace / TypeEx Class / GetNonNullableType Method
Type.



In This Topic
    GetNonNullableType Method
    In This Topic
    Returns the underlying type of a nullable type: e.g. if Type = double?, then returns double.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function GetNonNullableType( _
       ByVal type As Type _
    ) As Type
    'Usage
     
    
    Dim type As Type
    Dim value As Type
     
    value = TypeEx.GetNonNullableType(type)
    [Extension()]
    public static Type GetNonNullableType( 
       Type type
    )
    [Extension()]
    public:
    static Type^ GetNonNullableType( 
       Type^ type
    ) 

    Parameters

    type
    Type.

    Return Value

    The underlying type.
    See Also