NotNull(IEnumerable<T?>)

Method in EnumerablesExtension

Summary

Returns an enumerator containing all items of sequence that are not null.

public static IEnumerable<T> NotNull<T>(this IEnumerable<T?> sequence) where T : class

Parameters

Name
Description

IEnumerable<T?> sequence

The sequence.

Type Parameters

Name
Description

T

The type of item in sequence .

Returns

A sequence containing non-null elements of sequence .

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.