TreeNode.cs 389 B

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. namespace Tree
  3. {
  4. public class TreeNode
  5. {
  6. private readonly List<int> childIds = new List<int>();
  7. public double X { get; set; }
  8. public double Y { get; set; }
  9. public int Type { get; set; }
  10. public int Id { get; set; }
  11. public int ParentId { get; set; }
  12. public List<int> ChildIds
  13. {
  14. get
  15. {
  16. return this.childIds;
  17. }
  18. }
  19. }
  20. }