EnumerableExtensionsIsNullOrEmpty(IEnumerable) Method

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

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static bool IsNullOrEmpty(
	this IEnumerable? source
)

Parameters

source  IEnumerable
The source to check.

Return Value

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