C# Class System.Linq.Expressions.DynamicExpression

Inheritance: Expression
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
DynamicExpression System
GetOrMakeArguments ReadOnlyCollection
IArgumentProvider Expression
IDynamicExpression Expression
IDynamicExpression object
Make DynamicExpression
Make DynamicExpression
Make DynamicExpression
Make DynamicExpression
Make DynamicExpression
Rewrite DynamicExpression

Public Methods

Method Description
Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType ) : DynamicExpression

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

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

Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0 ) : DynamicExpression

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

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

Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1 ) : DynamicExpression

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

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

Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2 ) : DynamicExpression

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

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

Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3 ) : DynamicExpression

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

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

Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, IEnumerable arguments ) : DynamicExpression

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

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

MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder ) : DynamicExpression

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

MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0 ) : DynamicExpression

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

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

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

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

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

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

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

MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, IEnumerable arguments ) : DynamicExpression

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

Reduce ( ) : Expression
Update ( IEnumerable arguments ) : DynamicExpression

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Protected Methods

Method Description
Accept ( ExpressionVisitor visitor ) : Expression

Dispatches to the specific visit method for this node type.

Private Methods

Method Description
DynamicExpression ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder ) : System
GetOrMakeArguments ( ) : ReadOnlyCollection
IArgumentProvider ( int index ) : Expression
IDynamicExpression ( Expression args ) : Expression
IDynamicExpression ( ) : object
Make ( Type returnType, Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0 ) : DynamicExpression
Make ( Type returnType, Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1 ) : DynamicExpression
Make ( Type returnType, Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2 ) : DynamicExpression
Make ( Type returnType, Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3 ) : DynamicExpression
Make ( Type returnType, Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, ReadOnlyCollection arguments ) : DynamicExpression
Rewrite ( Expression args ) : DynamicExpression

Makes a copy of this node replacing the args with the provided values. The number of the args needs to match the number of the current block. This helper is provided to allow re-writing of nodes to not depend on the specific optimized subclass of DynamicExpression which is being used.

Method Details

Accept() protected method

Dispatches to the specific visit method for this node type.
protected Accept ( ExpressionVisitor visitor ) : Expression
visitor ExpressionVisitor
return Expression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType ) : DynamicExpression
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
returnType Type The result type of the dynamic expression.
return DynamicExpression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0 ) : DynamicExpression
binder System.Runtime.CompilerServices.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.
return DynamicExpression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1 ) : DynamicExpression
binder System.Runtime.CompilerServices.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.
return DynamicExpression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2 ) : DynamicExpression
binder System.Runtime.CompilerServices.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.
return DynamicExpression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3 ) : DynamicExpression
binder System.Runtime.CompilerServices.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.
return DynamicExpression

Dynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
The DelegateType property of the result will be inferred from the types of the arguments and the specified return type.
public static Dynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, IEnumerable arguments ) : DynamicExpression
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
returnType Type The result type of the dynamic expression.
arguments IEnumerable The arguments to the dynamic operation.
return DynamicExpression

MakeDynamic() public static method

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.
return DynamicExpression

MakeDynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and one argument.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0 ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
arg0 Expression The argument to the dynamic operation.
return DynamicExpression

MakeDynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and two arguments.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1 ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
arg0 Expression The first argument to the dynamic operation.
arg1 Expression The second argument to the dynamic operation.
return DynamicExpression

MakeDynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and three arguments.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2 ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
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.
return DynamicExpression

MakeDynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and four arguments.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3 ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
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.
return DynamicExpression

MakeDynamic() public static method

Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
public static MakeDynamic ( Type delegateType, System.Runtime.CompilerServices.CallSiteBinder binder, IEnumerable arguments ) : DynamicExpression
delegateType Type The type of the delegate used by the .
binder System.Runtime.CompilerServices.CallSiteBinder The runtime binder for the dynamic operation.
arguments IEnumerable The arguments to the dynamic operation.
return DynamicExpression

Reduce() public method

public Reduce ( ) : Expression
return Expression

Update() public method

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
public Update ( IEnumerable arguments ) : DynamicExpression
arguments IEnumerable The property of the result.
return DynamicExpression