8 writes to eventCount
System (8)
compmod\system\componentmodel\EventDescriptorCollection.cs (8)
76this.eventCount = 0; 79this.eventCount = this.events.Length; 99this.eventCount = eventCount; 149events[eventCount++] = value; 161eventCount = 0; 200eventCount = 0; 263eventCount++; 293eventCount--;
19 references to eventCount
System (19)
compmod\system\componentmodel\EventDescriptorCollection.cs (19)
111return eventCount; 121if (index >= eventCount) { 148EnsureSize(eventCount + 1); 150return eventCount - 1; 209Array.Copy(events, 0, newEvents, 0, eventCount); 247return Array.IndexOf(events, value, 0, eventCount); 258EnsureSize(eventCount + 1); 259if (index < eventCount) { 260Array.Copy(events, index, events, index + 1, eventCount - index); 289if (index < eventCount - 1) { 290Array.Copy(events, index + 1, events, index, eventCount - index - 1); 292events[eventCount - 1] = null; 303if (events.Length == eventCount) { 307return new ArraySubsetEnumerator(events, eventCount); 318return new EventDescriptorCollection(this.events, this.eventCount, this.namedSort, this.comparer); 329return new EventDescriptorCollection(this.events, this.eventCount, names, this.comparer); 339return new EventDescriptorCollection(this.events, this.eventCount, names, comparer); 349return new EventDescriptorCollection(this.events, this.eventCount, this.namedSort, comparer); 452if (index >= eventCount) {