KGy SOFT

EnumerableExtensionsIsNullOrEmptyT Method (IEnumerableT)

KGy SOFT Core Libraries Help
Determines whether the specified source is  or empty (has no elements).

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public static bool IsNullOrEmpty<T>(
	this IEnumerable<T> source
)

Parameters

source
Type: System.Collections.GenericIEnumerableT
The source to check.

Type Parameters

T
The type of the elements of source.

Return Value

Type: Boolean
 if the source collection is  or empty; otherwise, .

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

Reference