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. |
The non null items.
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. |
The non null items.