Пример #1
0
 // Methods
 public void AddLast(MyLinkedList <T> right)
 {
     this.rightElement = right;
     right.leftElement = this;
 }
Пример #2
0
 // Constructor
 public MyLinkedList(T value)
 {
     this.value        = value;
     this.leftElement  = null;
     this.rightElement = null;
 }