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
--;
85 references to Count
PresentationFramework (2)
MS\Internal\Data\PropertyPathWorker.cs (1)
1476
if (0 <= index && index < properties.
Count
)
System\Windows\Data\BindingListCollectionView.cs (1)
2194
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)
179
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)
553
PropertyDescriptor[] propertiesArray = new PropertyDescriptor[propertyDescriptors.
Count
];
System\Data\xmlsaver.cs (1)
124
for (int i = 0; i < pds.
Count
; i++)
System.Windows.Forms (32)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2587
for (int i = 0; i < baseProps.
Count
; ++i)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1048
for (int i = 0; i < props.
Count
; i++)
1502
for (int i = 0; i < props.
Count
; i++)
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (2)
55
if (properties is not null && properties.
Count
> 0)
59
PropertyDescriptor[] descriptors = new PropertyDescriptor[properties.
Count
];
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (4)
288
for (int i = 0; i < _props.
Count
; i++)
936
List<DataGridViewColumn> cols = new(_props.
Count
);
938
for (int i = 0; i < _props.
Count
; i++)
1205
for (int i = 0; i < _props.
Count
; i++)
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
265
for (int i = 0; i < props.
Count
; i++)
278
for (int i = 0; i < props.
Count
; i++)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
104
string?[] args = new string[props.
Count
];
106
for (int i = 0; i < props.
Count
; i++)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1070
&& (eventTab.Tab.GetProperties(_selectedObjects[i], attributes)?.
Count
?? 0) > 0;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (4)
1315
var propertyDescriptors = new PropertyDescriptor[properties.
Count
];
1321
if (defaultProperty is null && properties.
Count
> 0)
1329
if ((properties is null || properties.
Count
== 0) && objectType is not null && objectType.IsArray && value is not null)
1349
entries = new GridEntry[properties.
Count
];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (2)
57
Hashtable values = new Hashtable(properties.
Count
);
58
for (int i = 0; i < properties.
Count
; i++)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (3)
177
for (int i = 0; i < objectProperties[0].
Count
; i++)
185
if (positions[j] >= objectProperties[j].
Count
)
234
if (position < objectProperties[j].
Count
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
26
for (int i = 0; i < properties.
Count
; i++)
System\Windows\Forms\DataBinding\Binding.cs (1)
505
for (int i = 0; i < propInfos.
Count
; i++)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
165
for (int j = 0; j < itemProps.
Count
; j++)
System\Windows\Forms\DataBinding\BindingSource.cs (2)
1329
for (int j = 0; j < _itemShape.
Count
; j++)
1340
for (int j = 0; j < _itemShape.
Count
; j++)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
641
if (!(enumerable is IList) && pdc.
Count
== 0)
System\Windows\Forms\Design\EventsTab.cs (3)
132
if (matchingComponentProperties.
Count
== 0)
163
var mergedEvents = new PropertyDescriptor[componentEventProperties.
Count
+ matchingPropertyEvents.Count];
165
matchingPropertyEvents.CopyTo(mergedEvents, componentEventProperties.
Count
);
System.Windows.Forms.Design (15)
System\ComponentModel\Design\ComponentDesigner.cs (1)
414
PropertyDescriptor[] values = new PropertyDescriptor[properties.
Count
];
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2171
PropertyDescriptor[] propArray = new PropertyDescriptor[props.
Count
];
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
673
propArray = new PropertyDescriptor[props.
Count
];
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
725
for (int i = 0; i < propertyDescriptorCollection.
Count
; i++)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
1274
for (int i = 0; i < props.
Count
; i++)
1288
propArray = new PropertyDescriptor[props.
Count
+ 1];
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
613
columnsToBeAdded = new List<DataGridViewColumn>(backEndProps!.
Count
);
614
for (int i = 0; i < backEndProps.
Count
; i++)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
674
if (_showDataMembers && properties?.
Count
== 0)
761
for (int i = 0; i < properties.
Count
; ++i)
859
for (int i = 0; i < properties.
Count
; ++i)
System\Windows\Forms\Design\ToolStripCustomTypeDescriptor.cs (4)
43
PropertyDescriptor[] propArray = new PropertyDescriptor[retColl.
Count
];
50
if (_collection?.
Count
> 0)
77
PropertyDescriptor[] propArray = new PropertyDescriptor[retColl.
Count
];
84
if (_collection?.
Count
> 0)