O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required