Table of Contents

Method IsEmpty

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

IsEmpty<T>(ICollection<T>)

Returns whether the collection is empty.

public static bool IsEmpty<T>(this ICollection<T> collection)

Parameters

collection ICollection<T>

The collection to check.

Returns

bool

true if the collection has no elements; otherwise, false.

Type Parameters

T

The type of elements in the collection.