 | EnumerableExtensionMethodsIsNullOrEmpty Method (IEnumerable) |
Determines whether the collection is null or contains no elements.
Namespace: Slash.Collections.ExtensionsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static bool IsNullOrEmpty(
this IEnumerable enumerable
)
<ExtensionAttribute>
Public Shared Function IsNullOrEmpty (
enumerable As IEnumerable
) As Boolean
public:
[ExtensionAttribute]
static bool IsNullOrEmpty(
IEnumerable^ enumerable
)
[<ExtensionAttribute>]
static member IsNullOrEmpty :
enumerable : IEnumerable -> bool
Parameters
- enumerable
- Type: System.CollectionsIEnumerable
The enumerable, which may be null or empty.
Return Value
Type:
Booleantrue if the IEnumerable is null or empty; otherwise,
false .
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