IronRuby.Builtins.FlagEnumerationOps.BitwiseAnd C# (CSharp) Method

BitwiseAnd() private method

private BitwiseAnd ( RubyContext context, object self, [ other ) : object
context RubyContext
self object
other [
return object
        public static object/*!*/ BitwiseAnd(RubyContext/*!*/ context, object/*!*/ self, [NotNull]object/*!*/ other) {
            Debug.Assert(self is Enum);

            var result = EnumUtils.BitwiseAnd(self, other);
            if (result != null) {
                return result;
            }
            throw RubyExceptions.CreateUnexpectedTypeError(context, other, context.GetClassDisplayName(self));
        }