Liquid XML Data Binder 2021
LiquidTechnologies.XmlObjects Namespace / LxLinqExtensions Class / AsEnumerable Method / AsEnumerable<T>(T,Boolean) Method
The type to convert to a sequence
The item to place in the sequence
When true if item is null then an empty sequence is returned

In This Topic
    AsEnumerable<T>(T,Boolean) Method
    In This Topic
    Converts an object T in to an IEnumerable<T>
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function AsEnumerable(Of T As Class)( _
       ByVal item As T, _
       ByVal ignoreNull As System.Boolean _
    ) As System.Collections.Generic.IEnumerable(Of T)
    public static System.Collections.Generic.IEnumerable<T> AsEnumerable<T>( 
       T item,
       System.bool ignoreNull
    )
    where T: class

    Parameters

    item
    The item to place in the sequence
    ignoreNull
    When true if item is null then an empty sequence is returned

    Type Parameters

    T
    The type to convert to a sequence

    Return Value

    a sequence containing the item value (on an empty sequence if item is null and ignoreNull is true).
    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