LiquidTechnologies.XmlObjects Namespace / LxNillable<T> Class
The type of the underlying value to be used for the content of the XML element
Members

In This Topic
    LxNillable<T> Class
    In This Topic
    Encapsulates the XSD concept of xsd:nillable, which is represented in an XML document by adding the attribute xsi:nil="true" to an element that is deemed to have a nil value.
    Object Model
    LxNillable<T> Class
    Syntax
    'Declaration
     
    
    Public Class LxNillable(Of T) 
       Implements ILxNillable 
    public class LxNillable<T> : ILxNillable  
    Type Parameters
    T
    The type of the underlying value to be used for the content of the XML element
    Remarks
    The xsd:nillable concept is often confused with the concept of optional elements.
    If an element is nillable then it is still represented in the XML document, but it contains no content (text or child nodes), if it is optional and missing it is simply not there.
    When a property is optional and the value is not set then its value will be null.
    When a property is required and nillable the LxNillable wrapper will be used, the element will always appear in the XML document, but the IsNil property will determine if it contains any contents.
    When a property is optional and nillable setting the property to null will cause it to be omitted from the XML document, setting it to an instance of a LxNillable<T> object will cause it appear in the XML document and the IsNil property will determine if it contains any contents.
    For usage and examples see Working with xs:nillable elements
    Inheritance Hierarchy

    System.Object
       LiquidTechnologies.XmlObjects.LxNillable<T>

    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