Click or drag to resize

IEnumerableExtensionsIsEmptyT Method

Determines whether an IEnumerable is empty.

Namespace:  System.Collections.Generic
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
public static bool IsEmpty<T>(
	this IEnumerable<T> items,
	Func<T, bool> predicate = null


Type: System.Collections.GenericIEnumerableT
The items to be tested.
predicate (Optional)
Type: SystemFuncT, Boolean
Optional item selector.

Type Parameters

The enumeration value type.

Return Value

Type: Boolean
true if items is empty.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also