Array.Empty<T> Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns an empty array.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public static T[] Empty<T>()

Return Value

Type: T[]

Returns an empty Array.

Type Parameters

T

The type of the elements of the array.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show: