using System.Collections.Generic; namespace Tree { public class TreeNode { private readonly List childIds = new List(); public double X { get; set; } public double Y { get; set; } public int Type { get; set; } public int Id { get; set; } public int ParentId { get; set; } public List ChildIds { get { return this.childIds; } } } }