Click or drag to resize
EnumerableExtensionMethodsIsNullOrEmptyT Method (IEnumerableT)
Determines whether the collection is null or contains no elements.

Namespace: Slash.Collections.Extensions
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public static bool IsNullOrEmpty<T>(
	this IEnumerable<T> enumerable
)

Parameters

enumerable
Type: System.Collections.GenericIEnumerableT
The enumerable, which may be null or empty.

Type Parameters

T
The IEnumerable type.

Return Value

Type: Boolean
true if the IEnumerable is null or empty; otherwise, false .

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