| Output of the program with basic operations on a List of characters. | Lecture 12 - slide 13 : 36 Program 2  | 
Initial list, followed by lst.Add('d'); lst.Add('e');
  a  b  c  d  e
lst[0] = 'z'; lst[1]++;
  z  c  c  d  e
lst.Insert(0,'n');
  n  z  c  c  d  e
lst.Insert(lst.Count,'x');
  n  z  c  c  d  e  x
lst.InsertRange(2, new List<char>{'1', '2', '3', '4'});
  n  z  1  2  3  4  c  c  d  e  x
lst.RemoveAt(0);
  z  1  2  3  4  c  c  d  e  x
lst.Remove('c');
  z  1  2  3  4  c  d  e  x
lst.RemoveRange(1, 2);
  z  3  4  c  d  e  x
lst.RemoveAll(delegate(char ch){return Char.IsDigit(ch);});
  z  c  d  e  x
All characters in lst are letters |