March 2004
Intermediate to advanced
560 pages
26h 47m
English
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. ... |
Read now
Unlock full access