C# Class System.Linq.Expressions.UnaryExpression

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

Private Properties

Property Type Description
FunctionalOp UnaryExpression
ReduceIndex Expression
ReduceMember Expression
ReduceVariable Expression
UnaryExpression System.Diagnostics

Public Methods

Method Description
Reduce ( ) : Expression

Reduces the 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 operand ) : UnaryExpression

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
FunctionalOp ( Expression operand ) : UnaryExpression
ReduceIndex ( ) : Expression
ReduceMember ( ) : Expression
ReduceVariable ( ) : Expression
UnaryExpression ( ExpressionType nodeType, Expression expression, Type type, MethodInfo method ) : System.Diagnostics

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 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 operand ) : UnaryExpression
operand Expression The property of the result.
return UnaryExpression