Method HasNulls
HasNulls<T>(T?[]?)
Determines whether the specified array contains any null elements.
public static bool HasNulls<T>(T?[]? array) where T : class
Parameters
arrayT[]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
TThe type of the elements in the array. Must be a nullable value type or a reference type.