Esempio n. 1
0
        /// <summary>
        ///     Returns a dictionary of all attributes within the current Python object
        /// </summary>
        /// <returns></returns>
        public Dictionary <string, PyObject> Attributes()
        {
            if (!IsValid)
            {
                return(new Dictionary <string, PyObject>());
            }

            return(new PyObject(_pySharp, Py.PyObject_Dir(this), true).ToList <string>().ToDictionary(attr => attr, Attribute));
        }