1 write to _list
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ListAdapter.cs (1)
18
internal ListAdapter(IList list) =>
_list
= list.OrThrowIfNull();
16 references to _list
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\ListAdapter.cs (16)
22
get => (T?)
_list
[index] ?? throw new InvalidOperationException();
23
set =>
_list
[index] = value.OrThrowIfNull();
26
int ICollection<T>.Count =>
_list
.Count;
28
bool ICollection<T>.IsReadOnly =>
_list
.IsReadOnly;
30
void ICollection<T>.Add(T item) =>
_list
.Add(item.OrThrowIfNull());
31
void ICollection<T>.Clear() =>
_list
.Clear();
32
bool ICollection<T>.Contains(T item) =>
_list
.Contains(item);
33
void ICollection<T>.CopyTo(T[] array, int arrayIndex) =>
_list
.CopyTo(array, arrayIndex);
34
IEnumerator IEnumerable.GetEnumerator() =>
_list
.GetEnumerator();
35
int IList<T>.IndexOf(T item) =>
_list
.IndexOf(item);
36
void IList<T>.Insert(int index, T item) =>
_list
.Insert(index, item.OrThrowIfNull());
37
void IList<T>.RemoveAt(int index) =>
_list
.RemoveAt(index);
41
if (
_list
.IsReadOnly || !
_list
.Contains(item))
46
_list
.Remove(item);
50
IEnumerator<T> IEnumerable<T>.GetEnumerator() => new Enumerator(
_list
.GetEnumerator());