System.Linq.Expressions.DynamicExpression.MakeDynamic C# (CSharp) Метод

MakeDynamic() публичный статический Метод

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
Результат DynamicExpression
        public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[] arguments)
        {
            return ExpressionExtension.MakeDynamic(delegateType, binder, arguments);
        }

Same methods

DynamicExpression::MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0 ) : DynamicExpression
DynamicExpression::MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1 ) : DynamicExpression
DynamicExpression::MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2 ) : DynamicExpression
DynamicExpression::MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3 ) : DynamicExpression
DynamicExpression::MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, IEnumerable arguments ) : DynamicExpression

Usage Example

Пример #1
0
 /// <summary>
 /// Creates a <see cref="DynamicExpression" /> that represents a dynamic operation bound by the provided <see cref="CallSiteBinder" />.
 /// </summary>
 /// <param name="delegateType">The type of the delegate used by the <see cref="CallSite" />.</param>
 /// <param name="binder">The runtime binder for the dynamic operation.</param>
 /// <param name="arguments">The arguments to the dynamic operation.</param>
 /// <returns>
 /// A <see cref="DynamicExpression" /> that has <see cref="NodeType" /> equal to
 /// <see cref="ExpressionType.Dynamic">Dynamic</see> and has the
 /// <see cref="DynamicExpression.DelegateType">DelegateType</see>,
 /// <see cref="DynamicExpression.Binder">Binder</see>, and
 /// <see cref="DynamicExpression.Arguments">Arguments</see> set to the specified values.
 /// </returns>
 public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable <Expression>?arguments) =>
 DynamicExpression.MakeDynamic(delegateType, binder, arguments);
All Usage Examples Of System.Linq.Expressions.DynamicExpression::MakeDynamic