1 write to list
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
25this.list = list;
15 references to list
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (15)
33public int Count => list.Count; 35public T this[int index] => list[index]; 39return list.Contains(value); 44list.CopyTo(array, index); 48list.Count == 0 ? SZGenericArrayEnumerator<T>.Empty : 49list.GetEnumerator(); 53return list.IndexOf(value); 56protected IList<T> Items => list; 62get => list[index]; 94return ((IEnumerable)list).GetEnumerator(); 99object ICollection.SyncRoot => list is ICollection coll ? coll.SyncRoot : this; 130list.CopyTo(items, index); 157int count = list.Count; 162objects[index++] = list[i]; 178get => list[index];