39 references to Count
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
238
List<Attribute> attributes = new List<Attribute>(propertyDescriptorAttributes.
Count
);
System.ComponentModel.TypeConverter (12)
System\ComponentModel\AttributeCollection.cs (4)
67
Attribute[] newArray = new Attribute[existing.
Count
+ newAttributes.Length];
68
int actualCount = existing.
Count
;
78
for (int existingIdx = 0; existingIdx < existing.
Count
; existingIdx++)
335
int ICollection.Count =>
Count
;
System\ComponentModel\MemberDescriptor.cs (2)
74
_attributes = new Attribute[descr.Attributes.
Count
];
97
if (oldMemberDescriptor.Attributes.
Count
!= 0)
System\ComponentModel\PropertyDescriptor.cs (1)
307
for (int i = 0; i < attrs.
Count
; i++)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1269
List<ReflectPropertyDescriptor> extendedList = new List<ReflectPropertyDescriptor>(attributes.
Count
);
System\ComponentModel\TypeDescriptor.cs (4)
2547
for (int i = 0; i < attributes.
Count
; i++)
2921
Attribute[] newArray = new Attribute[existing.
Count
+ newAttrs.Length];
2922
int actualCount = existing.
Count
;
2932
for (int existingIdx = 0; existingIdx < existing.
Count
; existingIdx++)
System.Data.Common (2)
System\Data\Common\DbConnectionStringBuilder.cs (1)
392
Attribute[] attributes = new Attribute[collection.
Count
];
System\Data\DataColumnPropertyDescriptor.cs (1)
24
Attribute[] attrs = new Attribute[base.Attributes.
Count
+ 1];
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
371
var attributes = new Attribute[value.
Count
];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1275
attributes = new Attribute[browsableAttributes.
Count
];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (1)
104
attributes = new Attribute[parentEntry.BrowsableAttributes.
Count
];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (4)
70
if (_browsableAttributes is not null && value is not null && _browsableAttributes.
Count
== value.
Count
)
72
var currentAttributes = new Attribute[_browsableAttributes.
Count
];
73
var newAttributes = new Attribute[value.
Count
];
System.Windows.Forms.Design (8)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
159
for (int i = 0; i < attributes.
Count
; i++)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1762
if (valueAttributes.
Count
!= typeAttributes.
Count
)
System\Windows\Forms\Design\ComponentTray.cs (1)
774
for (int i = 0; i < attributes.
Count
; i++)
System\Windows\Forms\Design\ControlDesigner.cs (1)
1641
Attribute[] attrs = new Attribute[controlsProp.Attributes.
Count
];
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
207
for (int i = 0; i < attributes.
Count
; i++)
System\Windows\Forms\Design\ImageListDesigner.cs (1)
127
Attribute[] attrs = new Attribute[imageProp.Attributes.
Count
];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2115
Attribute[] attrs = new Attribute[controlsProp.Attributes.
Count
];
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ComponentDesignerTests.cs (8)
2318
Assert.True(descriptor.Attributes.
Count
>= 7);
2319
Assert.True(result.Attributes.
Count
>= 8);
2338
Assert.True(descriptor.Attributes.
Count
>= 7);
2339
Assert.True(result.Attributes.
Count
>= 8);
2748
Assert.True(descriptor.Attributes.
Count
>= 7);
2749
Assert.True(result.Attributes.
Count
>= 8);
2769
Assert.True(descriptor.Attributes.
Count
>= 7);
2770
Assert.True(result.Attributes.
Count
>= 8);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
224
Assert.Equal(2, attributes.
Count
);