Esempio n. 1
0
        public override Expression CreateExpressionTree(ResolveContext rc)
        {
            if (UserOperator != null) {
                Arguments args = new Arguments (2);
                args.Add (new Argument (Binary.Left));
                args.Add (new Argument (Binary.Right));

                var method = new UserOperatorCall (UserOperator, args, Binary.CreateExpressionTree, loc);
                return method.CreateExpressionTree (rc);
            }

            return Binary.CreateExpressionTree (rc);
        }
Esempio n. 2
0
		public override Expression CreateExpressionTree (ResolveContext rc)
		{
			if (UserOperator != null) {
				Arguments args = new Arguments (2);
				args.Add (new Argument (Binary.Left));
				args.Add (new Argument (Binary.Right));

				var method = new UserOperatorCall (UserOperator, args, Binary.CreateExpressionTree, loc);
				return method.CreateExpressionTree (rc);
			}

			return Binary.CreateExpressionTree (rc);
		}