Indicates whether the specified Array is null or has a zero length.

Namespace: System.Extensions
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public static bool IsNullOrEmpty(
	this Array array
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function IsNullOrEmpty ( 
	array As Array
) As Boolean
Visual C++
public:
[ExtensionAttribute]
static bool IsNullOrEmpty(
	Array^ array
)
F#
static member IsNullOrEmpty : 
        array : Array -> bool 

Parameters

array
Type: System..::..Array
The Array to check.

Return Value

Type: Boolean
True if the Array is null or has a zero length; false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Array. 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