示例#1
0
        public static object BitwiseOr(object self, object other)
        {
            object result = EnumUtils.BitwiseOr(self, other);

            if (result != null)
            {
                return(result);
            }
            throw PythonOps.ValueError("bitwise or cannot be applied to {0} and {1}", self.GetType(), other.GetType());
        }
示例#2
0
        public static object /*!*/ BitwiseOr(RubyContext /*!*/ context, object /*!*/ self, [NotNull] object /*!*/ other)
        {
            Debug.Assert(self is Enum);

            var result = EnumUtils.BitwiseOr(self, other);

            if (result != null)
            {
                return(result);
            }

            throw RubyExceptions.CreateUnexpectedTypeError(context, other, context.GetClassDisplayName(self));
        }