C# Class System.Linq.Expressions.MemberInitExpression

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

Public Methods

Method Description
Reduce ( ) : Expression

Reduces the MemberInitExpression 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 ( NewExpression newExpression, IEnumerable bindings ) : MemberInitExpression

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
MemberInitExpression ( NewExpression newExpression, ReadOnlyCollection bindings ) : System.Collections.Generic
ReduceListInit ( Expression listExpression, ReadOnlyCollection initializers, bool keepOnStack ) : Expression
ReduceMemberBinding ( System.Linq.Expressions.ParameterExpression objVar, MemberBinding binding ) : Expression
ReduceMemberInit ( Expression objExpression, ReadOnlyCollection bindings, bool keepOnStack ) : 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 MemberInitExpression 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 ( NewExpression newExpression, IEnumerable bindings ) : MemberInitExpression
newExpression NewExpression The property of the result.
bindings IEnumerable The property of the result.
return MemberInitExpression