<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.3.26207.106" />

System.Reflection.Metadata.Ecma335.LiteralEncoder

public struct LiteralEncoder
Provides methods for encoding literals.
public BlobBuilder Builder { get; }

public LiteralEncoder(BlobBuilder builder)

Returns the encoder used to encode the literal value.

Returns a pair of encoders that must be used to encode the type and value of a literal in the order they appear in the parameter list.

Encodes the type and the value of a literal using the specified delegates.

public void TaggedVector(out CustomAttributeArrayTypeEncoder arrayType, out VectorEncoder vector)

Returns a pair of encoders that must be used to encode the type and the items of a vector literal in the order they appear in the parameter list.

Encodes the type and the items of a vector literal using the specified delegates.

Gets a vector encoder used to encode the items of a vector.