Liquid XML Data Binder 2020
AsEnumerable<T>(Nullable<T>) Method

LiquidTechnologies.XmlObjects Namespace > LxLinqExtensions Class > AsEnumerable Method : AsEnumerable<T>(Nullable<T>) Method
The type to convert to a sequence
The item to place in the sequence
Converts an object Nullable<T> in to an IEnumerable<T>
Public Overloads Shared Function AsEnumerable(Of T As {New, Struct})( _
   ByVal item As System.Nullable(Of T) _
) As System.Collections.Generic.IEnumerable(Of T)
public static System.Collections.Generic.IEnumerable<T> AsEnumerable<T>( 
   System.Nullable<T> item
where T: new(), struct


The item to place in the sequence

Type Parameters

The type to convert to a sequence

Return Value

A sequence containing the item value, if item is null (has no value) then an empty sequence is returned.

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


LxLinqExtensions Class
LxLinqExtensions Members
Overload List