ListExtensions.NonNull<T>

Extension Method in ListExtensions

Declaration

public static List<T> NonNull<T>(this List<T> list)
    where T : class

Description

Filters out all null items from the list.

Type Parameters

TThe type of the list.

Parameters

listThe list to filter.

Returns

ListTA new list with all null items removed.