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.2.0
Syntax
public static bool IsEmpty<T>(
	this IEnumerable<T> items,
	Func<T, bool> predicate = null
)

Parameters

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

Type Parameters

T
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