ArrayShapeEncoder.Shape Metoda

Definicja

Koduje kształt tablicy.

public:
 void Shape(int rank, System::Collections::Immutable::ImmutableArray<int> sizes, System::Collections::Immutable::ImmutableArray<int> lowerBounds);
public void Shape (int rank, System.Collections.Immutable.ImmutableArray<int> sizes, System.Collections.Immutable.ImmutableArray<int> lowerBounds);
member this.Shape : int * System.Collections.Immutable.ImmutableArray<int> * System.Collections.Immutable.ImmutableArray<int> -> unit
Public Sub Shape (rank As Integer, sizes As ImmutableArray(Of Integer), lowerBounds As ImmutableArray(Of Integer))

Parametry

rank
Int32

Liczba wymiarów w tablicy (musi być 1 lub większa).

sizes
ImmutableArray<Int32>

Rozmiary wymiarów. Tablica może być krótsza niż rank , ale nie dłuższa.

lowerBounds
ImmutableArray<Int32>

Wymiary dolne granice lub default(ImmutableArray<T>), aby ustawić wszystkie rank dolne granice na 0. Tablica może być krótsza niż rank , ale nie dłuższa.

Wyjątki

rank znajduje się poza zakresem [1, 0xffff], mniejszym niż sizes.Length, lub mniejszym niż lowerBounds.Length.

sizes to null.

Dotyczy