6 writes to events
System (6)
compmod\system\componentmodel\EventDescriptorCollection.cs (6)
73
this.
events
= events;
75
this.
events
= new EventDescriptor[0];
98
this.
events
= events;
183
this.
events
= newEvents;
201
events
= new EventDescriptor[sizeNeeded];
210
events
= newEvents;
37 references to events
System (37)
compmod\system\componentmodel\EventDescriptorCollection.cs (37)
79
this.eventCount = this.
events
.Length;
125
return
events
[index];
149
events
[eventCount++] = value;
174
Array.Copy(
events
, 0, array, index, Count);
180
if (
events
!= null) {
182
Array.Copy(
events
, 0, newEvents, 0, Count);
195
if (sizeNeeded <=
events
.Length) {
199
if (
events
== null ||
events
.Length == 0) {
207
int newSize = Math.Max(sizeNeeded,
events
.Length * 2);
209
Array.Copy(
events
, 0, newEvents, 0, eventCount);
225
if (String.Equals(
events
[i].Name, name, StringComparison.OrdinalIgnoreCase)) {
226
p =
events
[i];
233
if (String.Equals(
events
[i].Name, name, StringComparison.Ordinal)) {
234
p =
events
[i];
247
return Array.IndexOf(
events
, value, 0, eventCount);
260
Array.Copy(
events
, index,
events
, index + 1, eventCount - index);
262
events
[index] = value;
290
Array.Copy(
events
, index + 1,
events
, index, eventCount - index - 1);
292
events
[eventCount - 1] = null;
303
if (
events
.Length == eventCount) {
304
return
events
.GetEnumerator();
307
return new ArraySubsetEnumerator(
events
, eventCount);
318
return new EventDescriptorCollection(this.
events
, this.eventCount, this.namedSort, this.comparer);
329
return new EventDescriptorCollection(this.
events
, this.eventCount, names, this.comparer);
339
return new EventDescriptorCollection(this.
events
, this.eventCount, names, comparer);
349
return new EventDescriptorCollection(this.
events
, this.eventCount, this.namedSort, comparer);
359
if (
events
== null ||
events
.Length == 0) {
367
ArrayList eventArrayList = new ArrayList(
events
);
369
int eventCount =
events
.Length;
379
events
[foundCount++] = currentEvent;
393
events
[foundCount++] = (EventDescriptor)eventArrayList[i];
411
Array.Sort(
events
, sorter);
456
events
[index] = (EventDescriptor)value;