ArraySegment<T>.Implicit(T[] to ArraySegment<T>) Operator

Definition

Defines an implicit conversion of an array of type T to an array segment of type T.

C#
public static implicit operator ArraySegment<T>(T[] array);

Parameters

array
T[]

The array to convert.

Returns

An array segment representation of the array.

Applies to

Producto Versiones
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1