コード例 #1
0
        public void AddByIndex(int index, int value)
        {
            CheckBounds(index);
            DoubleNode DoubleNode = new DoubleNode(value);

            DoubleNode.AttachBefore(FindDoubleNode(index));
            Length++;
        }
コード例 #2
0
        public void Add(int value)
        {
            DoubleNode tmp = new DoubleNode(value);

            tmp.Previous = _root.Previous;
            tmp.AttachBefore(_root);
            Length++;
        }