Liquid XML Data Binder 2020
LiquidTechnologies.XmlObjects Namespace / LxNillable<T> Class / Create Method / Create(T,Boolean) Method
The value to be wrapped
Indicates if the contained value is Nil

In This Topic
    Create(T,Boolean) Method
    In This Topic
    Creates a LxNillable<T> wrapper for a class type
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Create( _
       ByVal value As T, _
       ByVal isNil As System.Boolean _
    ) As LxNillable(Of T)
    public static LxNillable<T> Create( 
       T value,
       System.bool isNil
    )

    Parameters

    value
    The value to be wrapped
    isNil
    Indicates if the contained value is Nil

    Return Value

    The wrapped value (or null if value is null)
    Remarks
    If the value is null then null is returned (indicating that the value is optional but missing).
    When the type T is a struct it is not possible to set value to null, so if the property is optional and should be omitted null should be set directly into the property.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also