EnumerableExtensionsIsNullOrEmpty(IEnumerable) Method
Determines whether the specified source is or empty (has no elements).
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static bool IsNullOrEmpty(
this IEnumerable? source
)
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty (
source As IEnumerable
) As Boolean
public:
[ExtensionAttribute]
static bool IsNullOrEmpty(
IEnumerable^ source
)
[<ExtensionAttribute>]
static member IsNullOrEmpty :
source : IEnumerable -> bool
- source IEnumerable
- The source to check.
Boolean if the
source collection is
or empty; otherwise,
.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).