Ejemplo n.º 1
0
        public override void IntserPos(int position, Bilet value)
        {
            Node temp = new Node {
                Data = value
            };
            Node current = Head;

            if (current != null)
            {
                for (int i = 0; i < position && current.Next != null; i++)
                {
                    current = current.Next;
                }
                temp.Next    = current.Next;
                current.Next = temp;
            }
            else
            {
                Head = temp;
            }
            Size++;
        }
Ejemplo n.º 2
0
 public abstract void InsertPos(int position, Bilet value);