예제 #1
0
        protected override Type resolveOperatorType(Context ctx, Type leftType, Type rightType)
        {
            if (leftType.IsAnyOf(typeof (int), typeof (long)) && rightType == typeof (int))
                return leftType;

            if (!IsLeft && ctx.CanCombineDelegates(leftType, rightType))
                return ctx.CombineDelegates(leftType, rightType);

            return null;
        }