ReflectorEmptyArrayT Method

Returns an empty array of T. The same as Array.Empty but works on every platform.

Definition

Namespace: KGySoft.Reflection
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static T[] EmptyArray<T>()

Type Parameters

T
The element type of the returned array.

Return Value

T
An empty array of T.

See Also