Type Summary

						public interface IList : ICollection, IEnumerable
{
  // Properties
     bool IsFixedSize { get; }
     bool IsReadOnly { get; }
     object this[int index] { set; get; }

  // Methods
     int Add (object value);
     void Clear ();
     bool Contains (object value);
     int IndexOf (object value);
     void Insert (int index, object value);
     void Remove (object value);
     void RemoveAt (int index);
}

BA IList and IDictionary are examples of interfaces that are slightly more complex and central to the design than I would have liked. Ordinarily I would have liked to make these abstract base classes in order to share some implementation and to version more easily. One of the compelling reasons that made us decide to make this an interface is to support strongly typed collections. ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library 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.