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