public UITreeNode[] LoadChildren( IPythonMemoryReader MemoryReader) { var Dict = this.Dict; if (null != Dict) { DictEntryChildren = Dict.EntryForKeyStr("_childrenObjects"); } if (null != DictEntryChildren) { if (DictEntryChildren.me_value.HasValue) { ChildrenList = new PyList(DictEntryChildren.me_value.Value, MemoryReader); } } if (null != ChildrenList) { var Items = ChildrenList.Items; if (null != Items) { children = Items.Select((ChildAddress) => new UITreeNode(ChildAddress, MemoryReader)).ToArray(); } } return(children); }
public UITreeNode[] LoadChildren( IPythonMemoryReader MemoryReader) { var Dict = this.Dict; if (null != Dict) { DictEntryChildren = Dict.EntryForKeyStr("children"); } if (null != DictEntryChildren) { if (DictEntryChildren.me_value.HasValue) { ChildrenList = new PyChildrenList(DictEntryChildren.me_value.Value, MemoryReader); ChildrenList.LoadDict(MemoryReader); ChildrenList.LoadChildren(MemoryReader); } } if (null != ChildrenList) { children = ChildrenList.children; } return(children); }