C# Class System.Linq.Expressions.ExpressionExtension

ファイルを表示 Open project: dotnet/corefx

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.

Private Methods

Method Description
GetValidMethodForDynamic ( Type delegateType ) : MethodInfo
MakeDynamic ( System.Runtime.CompilerServices.CallSiteBinder binder, Type returnType, ReadOnlyCollection args ) : DynamicExpression
ValidateDynamicArgument ( Expression arg, string paramName ) : void
ValidateDynamicArgument ( Expression arg, string paramName, int index ) : void

Method Details

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 System.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 System.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 System.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 System.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 System.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 System.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 System.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 System.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 System.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 System.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 System.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 System.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