EnumerableExtensionsIsNullOrEmpty(IEnumerable) Method

Determines whether the specified source is or empty (has no elements).


Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
public static bool IsNullOrEmpty(
	this IEnumerable? source


source  IEnumerable
The source to check.

Return Value

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 IEnumerable. 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