LiquidTechnologies.XmlObjects Namespace / LxLinqExtensions Class / AsEnumerable Method / AsEnumerable<T>(T) Method
The type to convert to a sequence
The item to place in the sequence

In This Topic
    AsEnumerable<T>(T) Method
    In This Topic
    Converts an struct value an IEnumerable<T>
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function AsEnumerable(Of T As {New, Struct})( _
       ByVal item As T _
    ) As System.Collections.Generic.IEnumerable(Of T)
    public static System.Collections.Generic.IEnumerable<T> AsEnumerable<T>( 
       T item
    )
    where T: new(), struct

    Parameters

    item
    The item to place in the sequence

    Type Parameters

    T
    The type to convert to a sequence

    Return Value

    A sequence containing the item value
    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