ReduceListInit() static private method

static private ReduceListInit ( Expression listExpression, ReadOnlyCollection initializers, bool keepOnStack ) : Expression
listExpression Expression
initializers ReadOnlyCollection
keepOnStack bool
return Expression
コード例 #1
0
 /// <summary>
 /// 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.
 /// </summary>
 /// <returns>The reduced expression.</returns>
 public override Expression Reduce()
 {
     return(MemberInitExpression.ReduceListInit(_newExpression, _initializers, true));
 }
コード例 #2
0
 /// <summary>
 /// 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.
 /// </summary>
 /// <returns>The reduced expression.</returns>
 public override Expression Reduce()
 {
     return(MemberInitExpression.ReduceListInit(NewExpression, Initializers, keepOnStack: true));
 }