C# Class System.Linq.Expressions.BinaryExpression

Inheritance: Expression
显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
BinaryExpression System.Collections.Generic
Create BinaryExpression
GetBinaryOpFromAssignmentOp ExpressionType
GetConversion LambdaExpression
GetMethod MethodInfo
IsOpAssignment bool
ReduceIndex Expression
ReduceMember Expression
ReduceUserdefinedLifted Expression
ReduceVariable Expression

Public Methods

Method Description
Reduce ( ) : Expression

Reduces the binary expression node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method is allowed to return another node which itself must be reduced.

Update ( Expression left, LambdaExpression conversion, Expression right ) : BinaryExpression

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
BinaryExpression ( Expression left, Expression right ) : System.Collections.Generic
Create ( ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method, LambdaExpression conversion ) : BinaryExpression
GetBinaryOpFromAssignmentOp ( ExpressionType op ) : ExpressionType
GetConversion ( ) : LambdaExpression
GetMethod ( ) : MethodInfo
IsOpAssignment ( ExpressionType op ) : bool
ReduceIndex ( ) : Expression
ReduceMember ( ) : Expression
ReduceUserdefinedLifted ( ) : Expression
ReduceVariable ( ) : Expression

Method Details

Accept() protected method

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

Reduce() public method

Reduces the binary expression node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method is allowed to return another node which itself must be reduced.
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 ( Expression left, LambdaExpression conversion, Expression right ) : BinaryExpression
left Expression The property of the result.
conversion LambdaExpression The property of the result.
right Expression The property of the result.
return BinaryExpression