Table of Contents

Method HasNulls

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

HasNulls<T>(T?[]?)

Determines whether the specified array contains any null elements.

public static bool HasNulls<T>(T?[]? array) where T : class

Parameters

array T[]

The array to check for null elements. Cannot be null.

Returns

bool

true if the array contains at least one null element; otherwise, false.

Type Parameters

T

The type of the elements in the array. Must be a nullable value type or a reference type.