using System; using System.Collections; namespace mGnu { /// /// A collection of strings /// public class StringCollection : CollectionBase { /// /// public void Add(string r) { List.Add(r); } /// /// public string this [int i] { get { return (string) List[i]; } set { if ( i >= Count ) { Add(value); } else { List[i] = value; } } } } }