mscorlib(4.0.0.0) API with additions
ReadOnlyCollectionBase.cs
2 
3 namespace System.Collections
4 {
7  [ComVisible(true)]
9  {
10  private ArrayList list;
11 
14  protected ArrayList InnerList
15  {
16  get
17  {
18  if (list == null)
19  {
20  list = new ArrayList();
21  }
22  return list;
23  }
24  }
25 
28  public virtual int Count => InnerList.Count;
29 
34  {
35  get
36  {
38  }
39  }
40 
43  object ICollection.SyncRoot
44  {
45  get
46  {
47  return InnerList.SyncRoot;
48  }
49  }
50 
61  void ICollection.CopyTo(Array array, int index)
62  {
63  InnerList.CopyTo(array, index);
64  }
65 
68  public virtual IEnumerator GetEnumerator()
69  {
70  return InnerList.GetEnumerator();
71  }
72  }
73 }
object SyncRoot
Gets an object that can be used to synchronize access to the T:System.Collections....
Definition: ICollection.cs:23
virtual int Count
Gets the number of elements actually contained in the T:System.Collections.ArrayList.
Definition: ArrayList.cs:2255
Definition: __Canon.cs:3
Provides the abstract base class for a strongly typed non-generic read-only collection.
virtual IEnumerator GetEnumerator()
Returns an enumerator that iterates through the T:System.Collections.ReadOnlyCollectionBase instance.
virtual bool IsSynchronized
Gets a value indicating whether access to the T:System.Collections.ArrayList is synchronized (thread ...
Definition: ArrayList.cs:2270
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Definition: IEnumerable.cs:9
virtual int Count
Gets the number of elements contained in the T:System.Collections.ReadOnlyCollectionBase instance.
bool IsSynchronized
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (threa...
Definition: ICollection.cs:33
virtual void CopyTo(Array array)
Copies the entire T:System.Collections.ArrayList to a compatible one-dimensional T:System....
Definition: ArrayList.cs:2516
virtual object SyncRoot
Gets an object that can be used to synchronize access to the T:System.Collections....
Definition: ArrayList.cs:2275
Specifies that the class can be serialized.
virtual IEnumerator GetEnumerator()
Returns an enumerator for the entire T:System.Collections.ArrayList.
Definition: ArrayList.cs:2615
Defines size, enumerators, and synchronization methods for all nongeneric collections.
Definition: ICollection.cs:8
Supports a simple iteration over a non-generic collection.
Definition: IEnumerator.cs:9
ArrayList InnerList
Gets the list of elements contained in the T:System.Collections.ReadOnlyCollectionBase instance.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...
Definition: ArrayList.cs:14