ArrayExtensions.NonNull<T>

Extension Method in ArrayExtensions

Declaration

public static T[] NonNull<T>(this T[] array)
    where T : class

Description

Filters out all null elements from the array.

Type Parameters

TThe type of the array.

Parameters

arrayThe array to filter.

Returns

T[]A new array with all null elements removed.