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