ArrayShapeEncoder.Shape Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes array shape.
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))
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈