示例#1
0
文件: Node2.cs 项目: BernCS/lab12
 public void Add(Country dataToFind, Country afterData)
 {
     if (this.Next == null)
     {
         Console.WriteLine("Не найдено!");
         return;
     }
     if (this.Data.GetName() == dataToFind.GetName() && this.Data.GetPopulation() == dataToFind.GetPopulation())
     {
         Node2 node = new Node2(afterData);
         node.Next = this.Next;
         node.Pred = this;
         this.Next = node;
         return;
     }
     this.Next.Add(dataToFind, afterData);
 }
示例#2
0
文件: Node2.cs 项目: BernCS/lab12
 public Node2(Country data)
 {
     Data = data;
     Next = null;
     Pred = null;
 }
示例#3
0
文件: Node2.cs 项目: BernCS/lab12
 public Node2()
 {
     Data = default(Country);
     Next = null;
     Pred = null;
 }