private void CreateNonClrAttrs() { if (!_checkedClrAttrs) { RemoteInterpreterProxy ri = RemoteInterpreter; foreach (var name in ri != null ? ri.DirHelper(_obj, false) : Enumerable.Empty <string>()) { if (!_attrs.ContainsKey(name)) { _attrs[name] = new MemberInfo(IsClrOnly.No); } else { _attrs[name] = new MemberInfo(_attrs[name].Member, IsClrOnly.No); } } foreach (var attr in _attrs.ToArray()) { if (attr.Value.ClrOnly == IsClrOnly.NotChecked) { _attrs[attr.Key] = new MemberInfo(attr.Value.Member, IsClrOnly.Yes); } } _checkedClrAttrs = true; } }
public IEnumerable <string> GetMemberNames(IModuleContext moduleContext) { RemoteInterpreterProxy ri = RemoteInterpreter; return(ri != null?ri.DirHelper(Value, ((IronPythonModuleContext)moduleContext).ShowClr) : Enumerable.Empty <string>()); }