public TreeViewWrapper(IVortexObject obj) { Wrapper = obj; if (Wrapper.GetType() == typeof(IVortexObject)) { HasChildren = true; Children = Wrapper.GetKids(); } }
public IEnumerable <TreeObject> AsTreeObject(IVortexObject vortexObject) => vortexObject .GetType() .GetProperties() .Select(prop => AsTreeItem(prop, vortexObject)) .Where(x => !(x is null));