Skip to content

M_CodeJam_Collections_CollectionExtensions_IsNullOrEmpty__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 8 revisions

CollectionExtensions.IsNullOrEmpty(T) Method (T[])

Indicates whether the specified array is null or empty.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static bool IsNullOrEmpty<T>(
	this T[] array
)

VB

<ExtensionAttribute>
Public Shared Function IsNullOrEmpty(Of T) ( 
	array As T()
) As Boolean

F#

[<ExtensionAttribute>]
static member IsNullOrEmpty : 
        array : 'T[] -> bool 

Parameters

 

array
Type: T[]
The collection to test for emptiness.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Collections.CollectionExtensions.IsNullOrEmpty1(0[])"]

Return Value

Type: Boolean
true, if the array parameter 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 . 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

CollectionExtensions Class
IsNullOrEmpty Overload
CodeJam.Collections Namespace

Clone this wiki locally