NamedArgumentsEncoder.AddArgument Method

Definition

Overloads

AddArgument(Boolean, Action<NamedArgumentTypeEncoder>, Action<NameEncoder>, Action<LiteralEncoder>)

Encodes a named argument (a field or property).

AddArgument(Boolean, NamedArgumentTypeEncoder, NameEncoder, LiteralEncoder)

Encodes a named argument (a field or property) and returns three encoders that must be used in the order they appear in the parameter list.

AddArgument(Boolean, Action<NamedArgumentTypeEncoder>, Action<NameEncoder>, Action<LiteralEncoder>)

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

Encodes a named argument (a field or property).

public:
 void AddArgument(bool isField, Action<System::Reflection::Metadata::Ecma335::NamedArgumentTypeEncoder> ^ type, Action<System::Reflection::Metadata::Ecma335::NameEncoder> ^ name, Action<System::Reflection::Metadata::Ecma335::LiteralEncoder> ^ literal);
public void AddArgument (bool isField, Action<System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder> type, Action<System.Reflection.Metadata.Ecma335.NameEncoder> name, Action<System.Reflection.Metadata.Ecma335.LiteralEncoder> literal);
member this.AddArgument : bool * Action<System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder> * Action<System.Reflection.Metadata.Ecma335.NameEncoder> * Action<System.Reflection.Metadata.Ecma335.LiteralEncoder> -> unit
Public Sub AddArgument (isField As Boolean, type As Action(Of NamedArgumentTypeEncoder), name As Action(Of NameEncoder), literal As Action(Of LiteralEncoder))

Parameters

isField
Boolean

true to encode a field, false to encode a property.

type
Action<NamedArgumentTypeEncoder>

The method to call first to encode the type of the argument.

name
Action<NameEncoder>

The method to call second to encode the name of the field or property.

literal
Action<LiteralEncoder>

The method to call third to encode the literal value of the argument.

Exceptions

type, name or literal is null.

Applies to

AddArgument(Boolean, NamedArgumentTypeEncoder, NameEncoder, LiteralEncoder)

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

Encodes a named argument (a field or property) and returns three encoders that must be used in the order they appear in the parameter list.

public:
 void AddArgument(bool isField, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::NamedArgumentTypeEncoder % type, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::NameEncoder % name, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::LiteralEncoder % literal);
public void AddArgument (bool isField, out System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder type, out System.Reflection.Metadata.Ecma335.NameEncoder name, out System.Reflection.Metadata.Ecma335.LiteralEncoder literal);
member this.AddArgument : bool * NamedArgumentTypeEncoder * NameEncoder * LiteralEncoder -> unit
Public Sub AddArgument (isField As Boolean, ByRef type As NamedArgumentTypeEncoder, ByRef name As NameEncoder, ByRef literal As LiteralEncoder)

Parameters

isField
Boolean

true to encode a field, false to encode a property.

type
NamedArgumentTypeEncoder

The method to call first to encode the type of the argument.

name
NameEncoder

The method to call second to encode the name of the field or property.

literal
LiteralEncoder

The method to call third to encode the literal value of the argument.

Applies to