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