AsEnumerable<T>(Nullable<T>) Method
'Declaration
Public Overloads Shared Function AsEnumerable(Of As {New, Struct})( _
ByVal As System.Nullable(Of T) _
) As System.Collections.Generic.IEnumerable(Of T)
public static System.Collections.Generic.IEnumerable<T> AsEnumerable<>(
System.Nullable<T>
)
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 value, if 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.