Liquid XML Data Binder 2020
LiquidTechnologies.XmlObjects Namespace / LxLinqExtensions Class / NotNull Method / NotNull<T>(IEnumerable<Nullable<T>>) Method
The type to filter
The items to filter

In This Topic
    NotNull<T>(IEnumerable<Nullable<T>>) Method
    In This Topic
    Filters out all null values
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function NotNull(Of T As {New, Struct})( _
       ByVal items As System.Collections.Generic.IEnumerable(Of Nullable(Of T)) _
    ) As System.Collections.Generic.IEnumerable(Of T)
    public static System.Collections.Generic.IEnumerable<T> NotNull<T>( 
       System.Collections.Generic.IEnumerable<Nullable<T>> items
    )
    where T: new(), struct

    Parameters

    items
    The items to filter

    Type Parameters

    T
    The type to filter

    Return Value

    A sequence containing all the non-null values in items (where HasValue = true).
    Remarks
    Note the result is no longer contains Nullable objects
    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