コード例 #1
0
        private void AddToHead()
        {
            if (head != null)
            {
                head.next = this;
                this.prev = head;
            }
            else
            {
                tail = this;
            }

            head = this;
        }
コード例 #2
0
 public static StringArchive Create(string str)
 {
     StringArchive newArchive = new StringArchive(str);
     newArchive.AddToHead();
     return newArchive;
 }