Click or drag to resize

IListExtensionMethodsIsNullOrEmptyT Method

Determines whether the passed in list is null or empty.

Namespace:  SD.Tools.BCLExtensions.CollectionsRelated
Assembly:  SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.2.0
Syntax
public static bool IsNullOrEmpty<T>(
	this IList<T> toCheck
)

Parameters

toCheck
Type: System.Collections.GenericIListT
the list to check.

Type Parameters

T
the type of the elements in the list to check

Return Value

Type: Boolean
true if the passed in list is null or empty, false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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