IronPython.Runtime.Method.CheckSelf C# (CSharp) Method

CheckSelf() private method

Validates that the current self object is usable for this method.
private CheckSelf ( CodeContext context, object self ) : object
context CodeContext
self object
return object
        internal object CheckSelf(CodeContext context, object self) {
            if (!PythonOps.IsInstance(context, self, im_class)) {
                throw BadSelf(self);
            }
            return self;
        }