6 writes to _events
System.ComponentModel.TypeConverter (6)
System\ComponentModel\EventDescriptorCollection.cs (6)
35
_events
= Array.Empty<EventDescriptor>();
39
_events
= events;
62
_events
= events;
132
_events
= newEvents;
153
_events
= new EventDescriptor[sizeNeeded];
162
_events
= newEvents;
34 references to _events
System.ComponentModel.TypeConverter (34)
System\ComponentModel\EventDescriptorCollection.cs (34)
84
return
_events
[index];
101
_events
[Count++] = value;
120
Array.Copy(
_events
, 0, array, index, Count);
128
if (
_events
!= null)
131
Array.Copy(
_events
, newEvents, Count);
145
if (sizeNeeded <=
_events
.Length)
150
if (
_events
.Length == 0)
159
int newSize = Math.Max(sizeNeeded,
_events
.Length * 2);
161
Array.Copy(
_events
, newEvents, Count);
177
if (string.Equals(
_events
[i]!.Name, name, StringComparison.OrdinalIgnoreCase))
179
p =
_events
[i];
188
if (string.Equals(
_events
[i]!.Name, name, StringComparison.Ordinal))
190
p =
_events
[i];
199
public int IndexOf(EventDescriptor? value) => Array.IndexOf(
_events
, value, 0, Count);
211
Array.Copy(
_events
, index,
_events
, index + 1, Count - index);
213
_events
[index] = value;
241
Array.Copy(
_events
, index + 1,
_events
, index, Count - index - 1);
243
_events
[Count - 1] = null;
253
if (
_events
.Length == Count)
255
return
_events
.GetEnumerator();
259
return new ArraySubsetEnumerator(
_events
, Count);
269
return new EventDescriptorCollection(
_events
, Count, _namedSort, _comparer);
278
return new EventDescriptorCollection(
_events
, Count, names, _comparer);
287
return new EventDescriptorCollection(
_events
, Count, names, comparer);
296
return new EventDescriptorCollection(
_events
, Count, _namedSort, comparer);
305
if (
_events
.Length == 0)
314
List<EventDescriptor?> eventList = new List<EventDescriptor?>(
_events
);
316
int eventCount =
_events
.Length;
329
_events
[foundCount++] = currentEvent;
345
_events
[foundCount++] = eventList[i];
364
Array.Sort(
_events
, sorter);
391
_events
[index] = (EventDescriptor?)value;