Exemplo n.º 1
0
        public bool IsVisible(string index, bool showClr)
        {
            if (showClr || _obj is NamespaceTracker)
            {
                return(true);
            }

            if (_nonClrAttributes == null)
            {
                _nonClrAttributes = IronPythonInterpreter.DirHelper(_obj, false);;
            }

            return(_nonClrAttributes.IndexOf(index) != -1);
        }
Exemplo n.º 2
0
 public IEnumerable <string> GetMemberNames(IModuleContext moduleContext)
 {
     return(IronPythonInterpreter.DirHelper(_obj, ((IronPythonModuleContext)moduleContext).ShowClr));
 }