LiteralEncoder.TaggedScalar Method

Definition

Overloads

TaggedScalar(Action<CustomAttributeElementTypeEncoder>, Action<ScalarEncoder>)

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

TaggedScalar(CustomAttributeElementTypeEncoder, ScalarEncoder)

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.

TaggedScalar(Action<CustomAttributeElementTypeEncoder>, Action<ScalarEncoder>)

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

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

public:
 void TaggedScalar(Action<System::Reflection::Metadata::Ecma335::CustomAttributeElementTypeEncoder> ^ type, Action<System::Reflection::Metadata::Ecma335::ScalarEncoder> ^ scalar);
public void TaggedScalar (Action<System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder> type, Action<System.Reflection.Metadata.Ecma335.ScalarEncoder> scalar);
member this.TaggedScalar : Action<System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder> * Action<System.Reflection.Metadata.Ecma335.ScalarEncoder> -> unit
Public Sub TaggedScalar (type As Action(Of CustomAttributeElementTypeEncoder), scalar As Action(Of ScalarEncoder))

Parameters

type
Action<CustomAttributeElementTypeEncoder>

A delegate used to encode the type of the literal. Called first by this method.

scalar
Action<ScalarEncoder>

A delegate used to encode the value of the literal. Called second by this method.

Exceptions

type or scalar is null.

Applies to

TaggedScalar(CustomAttributeElementTypeEncoder, ScalarEncoder)

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

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.

public:
 void TaggedScalar([Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::CustomAttributeElementTypeEncoder % type, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::ScalarEncoder % scalar);
public void TaggedScalar (out System.Reflection.Metadata.Ecma335.CustomAttributeElementTypeEncoder type, out System.Reflection.Metadata.Ecma335.ScalarEncoder scalar);
member this.TaggedScalar : CustomAttributeElementTypeEncoder * ScalarEncoder -> unit
Public Sub TaggedScalar (ByRef type As CustomAttributeElementTypeEncoder, ByRef scalar As ScalarEncoder)

Parameters

type
CustomAttributeElementTypeEncoder

When this method returns, a custom attribute element type encoder used to encode the type of the literal.

scalar
ScalarEncoder

When this method returns, a scalar encoded used to encode the value of the literal.

Applies to