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