Example #1
0
        public void Insert(object item, int position)
        {
            var newListElement = new LinkedListItem(item);

            LinkedListItem current = First;

            for (int i = 0; i < position; i++)
            {
                if (i == position)
                {
                    if (current != null)
                    {
                    }
                    else
                    {
                        Add(item);
                    }
                }
                else
                {
                }
            }
        }
Example #2
0
 public void Clear()
 {
     Current = null;
     First   = null;
     Length  = 0;
 }