private void AddToHead() { if (head != null) { head.next = this; this.prev = head; } else { tail = this; } head = this; }
public static StringArchive Create(string str) { StringArchive newArchive = new StringArchive(str); newArchive.AddToHead(); return newArchive; }