DustProductions.Core API Documentation
DustProductions.Core API Documentation
DustProductions.Core
ExtensionMethods Class
ExtensionMethods Methods
IsNullOrEmpty Method
IsNullOrEmpty(T) Method (IEnumerable(T))
IsNullOrEmpty(T) Method (List(T))
IsNullOrEmpty(T) Method (T[])
ExtensionMethods
IsNullOrEmpty
T
Method (IEnumerable
T
)
Extension method for checking if any enumerable is null or empty. Not as fast as the array check.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
static
bool
IsNullOrEmpty
<T>(
this
IEnumerable
<T>
enumerable
)
Parameters
enumerable
Type:
System.Collections.Generic
IEnumerable
T
The enumerable
Type Parameters
T
The type of the items in the enumerable
Return Value
Type:
Boolean
True if the enumerable is null, or contains nothing
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. 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
ExtensionMethods Class
IsNullOrEmpty Overload
DustProductions.Core Namespace