EnumerableUtility.WhereNotNull<T> method (1 of 2)

Enumerates the specified collection, returning all the elements that are not null.

public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source)
    where T : class
parameter description
source The sequence to enumerate.

Return Value

The non null items.

See Also


EnumerableUtility.WhereNotNull<T> method (2 of 2)

Enumerates the specified collection, returning all the elements that are not null.

public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source)
    where T : struct
parameter description
source The sequence to enumerate.

Return Value

The non null items.

See Also