Name

StringCollection

Synopsis

This class is a special collection in which the elements are strings.

public class StringCollection : IList, ICollection, IEnumerable {
// Public Constructors
   public method StringCollection();  
// Public Instance Properties
   public field int Count{get; }                                 // implements ICollection
   public field bool IsReadOnly{get; }                           // implements IList
   public field bool IsSynchronized{get; }                       // implements ICollection
   public field object SyncRoot{get; }                           // implements ICollection
   public field string this{set; get; } 
// Public Instance Methods
   public method int Add(string value);  
   public method void AddRange(string[] value);  
   public method void Clear();                                   // implements IList
   public method bool Contains(string value);  
   public method void CopyTo(string[] array, int index);  
   public method StringEnumerator GetEnumerator();  
   public method int IndexOf(string value);  
   public method void Insert(int index, string value);  
   public method void Remove(string value);  
   public method void RemoveAt(int index);                      // implements IList
}

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.