ArrayShapeEncoder.Shape Method

Definition

Encodes array shape.

C#
public void Shape(int rank, System.Collections.Immutable.ImmutableArray<int> sizes, System.Collections.Immutable.ImmutableArray<int> lowerBounds);

Parameters

rank
Int32

The number of dimensions in the array (shall be 1 or more).

sizes
ImmutableArray<Int32>

Dimension sizes. The array may be shorter than rank but not longer.

lowerBounds
ImmutableArray<Int32>

Dimension lower bounds, or default(ImmutableArray<T>) to set all rank lower bounds to 0. The array may be shorter than rank but not longer.

Exceptions

rank is outside of range [1, 0xffff], smaller than sizes.Length, or smaller than lowerBounds.Length.

sizes is null.

Applies to

Product Versions
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)