public override bool Equals(Expression other) { if (other.CodeNodeType != CodeNodeType.DynamicConstructorInvocationExpression) { return(false); } DynamicConstructorInvocationExpression otherExpression = other as DynamicConstructorInvocationExpression; return(this.ConstructorType.FullName == otherExpression.ConstructorType.FullName && this.Arguments.Equals(otherExpression.Arguments)); }
public override void VisitDynamicConstructorInvocationExpression(DynamicConstructorInvocationExpression node) { WriteKeyword(KeyWordWriter.New); WriteSpace(); WriteReferenceAndNamespaceIfInCollision(node.ConstructorType); WriteToken("("); for (int i = 0; i < node.Arguments.Count; i++) { if (i != 0) { WriteToken(","); WriteSpace(); } Visit(node.Arguments[i]); } WriteToken(")"); }
public override Expression CloneExpressionOnly() { DynamicConstructorInvocationExpression result = new DynamicConstructorInvocationExpression(ConstructorType, Arguments.CloneExpressionsOnly(), null); return(result); }
public override Expression CloneExpressionOnly() { DynamicConstructorInvocationExpression result = new DynamicConstructorInvocationExpression(ConstructorType, Arguments.CloneExpressionsOnly(), null); return result; }
public virtual void VisitDynamicConstructorInvocationExpression(DynamicConstructorInvocationExpression node) { Visit(node.Arguments); }