public static object BitwiseAnd(object self, object other) { object result = EnumUtils.BitwiseAnd(self, other); if (result != null) { return(result); } throw PythonOps.ValueError("bitwise and cannot be applied to {0} and {1}", self.GetType(), other.GetType()); }
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)); }