Rediģēt

Kopīgot, izmantojot


Expression.Dynamic Method

Definition

Creates a DynamicExpression that represents a dynamic operation.

Overloads

Dynamic(CallSiteBinder, Type, Expression, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, Expression, Expression, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, Expression)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, IEnumerable<Expression>)

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, Expression[])

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

Dynamic(CallSiteBinder, Type, Expression, Expression, Expression, Expression)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, System::Linq::Expressions::Expression ^ arg0, System::Linq::Expressions::Expression ^ arg1, System::Linq::Expressions::Expression ^ arg2, System::Linq::Expressions::Expression ^ arg3);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2, System.Linq.Expressions.Expression arg3);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, arg0 As Expression, arg1 As Expression, arg2 As Expression, arg3 As Expression) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arg0
Expression

The first argument to the dynamic operation.

arg1
Expression

The second argument to the dynamic operation.

arg2
Expression

The third argument to the dynamic operation.

arg3
Expression

The fourth argument to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to

Dynamic(CallSiteBinder, Type, Expression, Expression)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, System::Linq::Expressions::Expression ^ arg0, System::Linq::Expressions::Expression ^ arg1);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, arg0 As Expression, arg1 As Expression) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arg0
Expression

The first argument to the dynamic operation.

arg1
Expression

The second argument to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to

Dynamic(CallSiteBinder, Type, Expression, Expression, Expression)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, System::Linq::Expressions::Expression ^ arg0, System::Linq::Expressions::Expression ^ arg1, System::Linq::Expressions::Expression ^ arg2);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, System.Linq.Expressions.Expression arg0, System.Linq.Expressions.Expression arg1, System.Linq.Expressions.Expression arg2);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, arg0 As Expression, arg1 As Expression, arg2 As Expression) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arg0
Expression

The first argument to the dynamic operation.

arg1
Expression

The second argument to the dynamic operation.

arg2
Expression

The third argument to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to

Dynamic(CallSiteBinder, Type, Expression)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, System::Linq::Expressions::Expression ^ arg0);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, System.Linq.Expressions.Expression arg0);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * System.Linq.Expressions.Expression -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, arg0 As Expression) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arg0
Expression

The first argument to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to

Dynamic(CallSiteBinder, Type, IEnumerable<Expression>)

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, System::Collections::Generic::IEnumerable<System::Linq::Expressions::Expression ^> ^ arguments);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, System.Collections.Generic.IEnumerable<System.Linq.Expressions.Expression> arguments);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * seq<System.Linq.Expressions.Expression> -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, arguments As IEnumerable(Of Expression)) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arguments
IEnumerable<Expression>

The arguments to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to

Dynamic(CallSiteBinder, Type, Expression[])

Source:
Expression.cs
Source:
Expression.cs
Source:
Expression.cs

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.

public:
 static System::Linq::Expressions::DynamicExpression ^ Dynamic(System::Runtime::CompilerServices::CallSiteBinder ^ binder, Type ^ returnType, ... cli::array <System::Linq::Expressions::Expression ^> ^ arguments);
public static System.Linq.Expressions.DynamicExpression Dynamic (System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, params System.Linq.Expressions.Expression[] arguments);
static member Dynamic : System.Runtime.CompilerServices.CallSiteBinder * Type * System.Linq.Expressions.Expression[] -> System.Linq.Expressions.DynamicExpression
Public Shared Function Dynamic (binder As CallSiteBinder, returnType As Type, ParamArray arguments As Expression()) As DynamicExpression

Parameters

binder
CallSiteBinder

The runtime binder for the dynamic operation.

returnType
Type

The result type of the dynamic expression.

arguments
Expression[]

The arguments to the dynamic operation.

Returns

A DynamicExpression that has NodeType equal to Dynamic and has the Binder and Arguments set to the specified values.

Remarks

The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.

Applies to