7 writes to Count
System.ComponentModel.TypeConverter (7)
System\ComponentModel\EventDescriptorCollection.cs (7)
40Count = events.Length; 63Count = eventCount; 101_events[Count++] = value; 112Count = 0; 152Count = 0; 214Count++; 244Count--;
45 references to Count
System.ComponentModel.TypeConverter (24)
System\ComponentModel\EventDescriptorCollection.cs (24)
79if (index >= Count) 100EnsureSize(Count + 1); 102return Count - 1; 120Array.Copy(_events, 0, array, index, Count); 130EventDescriptor[] newEvents = new EventDescriptor[Count]; 131Array.Copy(_events, newEvents, Count); 161Array.Copy(_events, newEvents, Count); 175for (int i = 0; i < Count; i++) 186for (int i = 0; i < Count; i++) 199public int IndexOf(EventDescriptor? value) => Array.IndexOf(_events, value, 0, Count); 208EnsureSize(Count + 1); 209if (index < Count) 211Array.Copy(_events, index, _events, index + 1, Count - index); 239if (index < Count - 1) 241Array.Copy(_events, index + 1, _events, index, Count - index - 1); 243_events[Count - 1] = null; 253if (_events.Length == Count) 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); 372int ICollection.Count => Count; 386if (index >= Count)
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\Binding.cs (1)
548for (int i = 0; i < eventInfos.Count; i++)
System\Windows\Forms\Design\EventsTab.cs (1)
151if (propertyEvents.Count > 0)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\EventBindingService.cs (2)
176List<PropertyDescriptor> props = new(events.Count); 180for (int i = 0; i < events.Count; i++)
System.Windows.Forms.Tests (17)
System\Windows\Forms\AxHostTests.cs (16)
2632Assert.True(events.Count > 1); 2638Assert.True(events.Count > 1); 2657Assert.True(events.Count > 1); 2666Assert.True(events.Count > 1); 2688Assert.True(events.Count > 1); 2694Assert.True(events.Count > 1); 2714Assert.True(events.Count > 1); 2723Assert.True(events.Count > 1); 2737Assert.True(events.Count > 1); 2743Assert.True(events.Count > 1); 2762Assert.True(events.Count > 1); 2771Assert.True(events.Count > 1); 2785Assert.True(events.Count > 1); 2791Assert.True(events.Count > 1); 2810Assert.True(events.Count > 1); 2819Assert.True(events.Count > 1);
System\Windows\Forms\AxWebBrowserTests.cs (1)
32events.Count.Should().BeGreaterThan(0);