This class is a special collection in which the elements are strings. public class StringCollection : IList, ICollection, IEnumerable { // Public Constructors public StringCollection ( ); // Public Instance Properties public int Count {get; } // implements ICollection public bool IsReadOnly {get; } // implements IList public bool IsSynchronized {get; } // implements ICollection public object SyncRoot {get; } // implements ICollection public string this [int index ]{set; get; } // Public Instance Methods public int Add (string value ); public void AddRange (string[ ] value ); public void Clear ( ); // implements IList public bool Contains (string value ); public void CopyTo (string[ ] array , int index ); public StringEnumerator GetEnumerator ( ); public int IndexOf (string value ); public void Insert (int index , string value ); public void Remove (string value ); public void RemoveAt (int index ); // implements IList } |