GetDocString() private method

private GetDocString ( ) : IntPtr
return System.IntPtr
        //====================================================================
        // Descriptor __getattribute__ implementation.
        //====================================================================

        public static IntPtr tp_getattro(IntPtr ob, IntPtr key)
        {
            MethodObject self = (MethodObject)GetManagedObject(ob);

            if (!Runtime.PyString_Check(key))
            {
                return(Exceptions.RaiseTypeError("string expected"));
            }

            string name = Runtime.GetManagedString(key);

            if (name == "__doc__")
            {
                IntPtr doc = self.GetDocString();
                Runtime.Incref(doc);
                return(doc);
            }

            return(Runtime.PyObject_GenericGetAttr(ob, key));
        }