using System.Collections.Generic; namespace UniJSON { public interface ITreeNode where T : ITreeNode { bool IsValid { get; } bool HasParent { get; } T Parent { get; } IEnumerable Children { get; } int ValueIndex { get; } U Value { get; } void SetValue(U value); } public interface IListTreeItem { int ParentIndex { get; } } }