| ExtensionMethodsIsNullOrEmptyT Method (T) |
Extension method for quickly checking if an array is null or empty.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool IsNullOrEmpty<T>(
this T[] array
)
Parameters
- array
- Type: T
The array to check
Type Parameters
- T
- The type of the contents of the array
Return Value
Type:
BooleanTrue if the array is null, or length is 0
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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