ParsingExpression IXmlExprTypeVisitor <ParsingExpression> .VisitNumber(ExprNumberType expr) { uint min = 0, max = uint.MaxValue; if (expr.MinSpecified) { min = expr.Min; } if (expr.MaxSpecified) { max = expr.Max; } return(new ParsingExpression.Number(min, max, expr.Item.Apply(this))); }
ExpressionType IParsingExpressionVisitor <ExpressionType> .VisitNum(ParsingExpression.Number number) { var num = new ExprNumberType() { Item = number.Child.Apply(this) }; if (number.Max < int.MaxValue) { num.Max = number.Max; num.MaxSpecified = true; } if (number.Min > 0) { num.Min = number.Min; num.MinSpecified = true; } return(num); }