SignatureTypeEncoder.Array Method

Definition

Overloads

Array(Action<SignatureTypeEncoder>, Action<ArrayShapeEncoder>)

Encodes an array type.

Array(SignatureTypeEncoder, ArrayShapeEncoder)

Encodes an array type. Returns a pair of encoders that must be used in the order they appear in the parameter list.

Array(Action<SignatureTypeEncoder>, Action<ArrayShapeEncoder>)

Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs

Encodes an array type.

C#
public void Array(Action<System.Reflection.Metadata.Ecma335.SignatureTypeEncoder> elementType, Action<System.Reflection.Metadata.Ecma335.ArrayShapeEncoder> arrayShape);

Parameters

elementType
Action<SignatureTypeEncoder>

Called first, to encode the type of the element.

arrayShape
Action<ArrayShapeEncoder>

Called second, to encode the shape of the array.

Exceptions

elementType or arrayShape is null.

Applies to

.NET 10 and other versions
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)

Array(SignatureTypeEncoder, ArrayShapeEncoder)

Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs

Encodes an array type. Returns a pair of encoders that must be used in the order they appear in the parameter list.

C#
public void Array(out System.Reflection.Metadata.Ecma335.SignatureTypeEncoder elementType, out System.Reflection.Metadata.Ecma335.ArrayShapeEncoder arrayShape);

Parameters

elementType
SignatureTypeEncoder

Use first, to encode the type of the element.

arrayShape
ArrayShapeEncoder

Use second, to encode the shape of the array.

Applies to

.NET 10 and other versions
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)