Ejemplo n.º 1
0
        public override ExpressionResult VisitInt(EntityGraphQLParser.IntContext context)
        {
            string s = context.GetText();

            return((ExpressionResult)(s.StartsWith("-") ? Expression.Constant(Int64.Parse(s)) : Expression.Constant(UInt64.Parse(s))));
        }
Ejemplo n.º 2
0
 public override ExpressionResult VisitInt(EntityGraphQLParser.IntContext context)
 {
     return((ExpressionResult)Expression.Constant(Int32.Parse(context.GetText())));
 }