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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.