8 writes to Count
System.ComponentModel.TypeConverter (8)
System\ComponentModel\PropertyDescriptorCollection.cs (8)
41
Count
= 0;
46
Count
= properties.Length;
69
Count
= propCount;
107
_properties[
Count
++] = value;
118
Count
= 0;
159
Count
= 0;
247
Count
++;
277
Count
--;
38 references to Count
PresentationFramework (2)
MS\Internal\Data\PropertyPathWorker.cs (1)
1504
if (0 <= index && index < properties.
Count
)
System\Windows\Data\BindingListCollectionView.cs (1)
2216
if ((pdc == null) || (pdc.
Count
== 0))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Validator.cs (1)
520
var items = new List<KeyValuePair<ValidationContext, object?>>(properties.
Count
);
System.ComponentModel.TypeConverter (33)
System\ComponentModel\Design\DesignerOptionService.cs (1)
184
propList = new ArrayList(props.
Count
);
System\ComponentModel\PropertyDescriptorCollection.cs (32)
85
if (index >=
Count
)
106
EnsureSize(
Count
+ 1);
108
return
Count
- 1;
127
Array.Copy(_properties, 0, array, index,
Count
);
137
PropertyDescriptor[] newProps = new PropertyDescriptor[
Count
];
138
Array.Copy(_properties, newProps,
Count
);
168
Array.Copy(_properties, newProps,
Count
);
206
for (int i = 0; i <
Count
; i++)
232
public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(_properties, value, 0,
Count
);
241
EnsureSize(
Count
+ 1);
242
if (index <
Count
)
244
Array.Copy(_properties, index, _properties, index + 1,
Count
- index);
272
if (index <
Count
- 1)
274
Array.Copy(_properties, index + 1, _properties, index,
Count
- index - 1);
276
_properties[
Count
- 1] = null!;
286
return new PropertyDescriptorCollection(_properties,
Count
, _namedSort, _comparer);
296
return new PropertyDescriptorCollection(_properties,
Count
, names, _comparer);
305
return new PropertyDescriptorCollection(_properties,
Count
, names, comparer);
314
return new PropertyDescriptorCollection(_properties,
Count
, _namedSort, comparer);
393
if (_properties.Length !=
Count
)
395
PropertyDescriptor[] enumProps = new PropertyDescriptor[
Count
];
396
Array.Copy(_properties, enumProps,
Count
);
406
int ICollection.Count =>
Count
;
469
if (index < 0 || index >=
Count
)
476
for (int i = 0; i <
Count
; i++)
510
string[] keys = new string[
Count
];
511
for (int i = 0; i <
Count
; i++)
524
if (_properties.Length !=
Count
)
526
PropertyDescriptor[] newProps = new PropertyDescriptor[
Count
];
527
Array.Copy(_properties, newProps,
Count
);
573
if (index >=
Count
)
616
if (_index < (_owner.
Count
- 1))
System.Data.Common (2)
System\Data\Common\DbConnectionStringBuilder.cs (1)
550
PropertyDescriptor[] propertiesArray = new PropertyDescriptor[propertyDescriptors.
Count
];
System\Data\xmlsaver.cs (1)
124
for (int i = 0; i < pds.
Count
; i++)