CollectionExtensions.HasItems Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

HasItems(IEnumerable)

Indicates whether the specified generic collection has any items.

public static bool HasItems<T>(this IEnumerable<T> enumerable)

Parameters

enumerable
System.Collections.Generic.IEnumerable<>

The collection to check.

Returns

bool

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