Example #1
0
        //====================================================================
        // Helper to get docstring from reflected constructor info.
        //====================================================================

        internal IntPtr GetDocString()
        {
            MethodBase[] methods = binder.GetMethods();
            string       str     = "";

            for (int i = 0; i < methods.Length; i++)
            {
                if (str.Length > 0)
                {
                    str += Environment.NewLine;
                }
                str += methods[i].ToString();
            }
            return(Runtime.PyString_FromString(str));
        }
Example #2
0
        /// <summary>
        /// Helper to get docstring from reflected constructor info.
        /// </summary>
        internal IntPtr GetDocString()
        {
            MethodBase[] methods = binder.GetMethods();
            var          str     = "";

            foreach (MethodBase t in methods)
            {
                if (str.Length > 0)
                {
                    str += Environment.NewLine;
                }
                str += t.ToString();
            }
            return(Runtime.PyString_FromString(str));
        }
Example #3
0
        /// <summary>
        /// Helper to get docstring from reflected constructor info.
        /// </summary>
        internal NewReference GetDocString()
        {
            MethodBase[] methods = binder.GetMethods();
            var          str     = "";

            foreach (MethodBase t in methods)
            {
                if (str.Length > 0)
                {
                    str += Environment.NewLine;
                }
                str += t.ToString();
            }
            return(NewReference.DangerousFromPointer(Runtime.PyString_FromString(str)));
        }