1 type derived from AttributeCollection
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
10private class MergedAttributeCollection : AttributeCollection
37 instantiations of AttributeCollection
PresentationFramework (2)
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (2)
277get { return new AttributeCollection(); } 346get { return new AttributeCollection(); }
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
259return removedAttribute ? new AttributeCollection(attributes.ToArray()) : propertyDescriptorAttributes;
System.ComponentModel.TypeConverter (10)
System\ComponentModel\AttributeCollection.cs (2)
21public static readonly AttributeCollection Empty = new AttributeCollection(null); 106return new AttributeCollection(attributes);
System\ComponentModel\MemberDescriptor.cs (1)
236return new AttributeCollection(AttributeArray);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
146_attributes = new AttributeCollection(attributes.ToArray());
System\ComponentModel\TypeDescriptor.cs (6)
682return new AttributeCollection(null); 708return new AttributeCollection(null); 778attrs = new AttributeCollection(attrArray); 2097cacheValue = new AttributeCollection(attrArray); 2252cacheValue = new AttributeCollection(attrArray); 2959return new AttributeCollection(finalAttr);
System.Data.Common (5)
System\Data\Common\DataRecordInternal.cs (1)
307return new AttributeCollection(null);
System\Data\Common\DbDataRecord.cs (1)
73AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System\Data\DataColumnPropertyDescriptor.cs (1)
29return new AttributeCollection(attrs);
System\Data\DataRowView.cs (1)
232AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
34AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System.Windows.Forms (9)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
476protected sealed override AttributeCollection CreateAttributeCollection() => new(AttributeArray);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
255return attributes.Count == 0 ? new(s_staticAttributes) : new(attributes.ToArray());
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
18AttributeCollection ICustomTypeDescriptor.GetAttributes() => new(s_staticAttributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
362get => _browsableAttributes ??= new(BrowsableAttribute.Yes); 367_browsableAttributes = new(BrowsableAttribute.Yes); 373_browsableAttributes = new(attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
59get => _browsableAttributes ??= new(BrowsableAttribute.Yes); 215public void ResetBrowsableAttributes() => _browsableAttributes = new(BrowsableAttribute.Yes);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1349return new AttributeCollection(attrs);
System.Windows.Forms.Tests (8)
System\Windows\Forms\PropertyGridTests.cs (8)
532yield return new object[] { null, new AttributeCollection([BrowsableAttribute.Yes]) }; 533yield return new object[] { AttributeCollection.Empty, new AttributeCollection([BrowsableAttribute.Yes]) }; 534yield return new object[] { new AttributeCollection(), new AttributeCollection() }; 535yield return new object[] { new AttributeCollection([BrowsableAttribute.Yes]), new AttributeCollection([BrowsableAttribute.Yes]) }; 536yield return new object[] { new AttributeCollection([BrowsableAttribute.Yes, ReadOnlyAttribute.Yes]), new AttributeCollection([BrowsableAttribute.Yes, ReadOnlyAttribute.Yes]) };
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
200AttributeCollection newAttributes = new(new BrowsableAttribute(true));
165 references to AttributeCollection
netstandard (1)
netstandard.cs (1)
181[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.AttributeCollection))]
PresentationFramework (14)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (6)
170public override AttributeCollection Attributes 870public override AttributeCollection Attributes 1018public override AttributeCollection Attributes 1020get { return AttributeCollection.Empty; } 1058public override AttributeCollection Attributes 1060get { return AttributeCollection.Empty; }
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (2)
36public override AttributeCollection Attributes 78public override AttributeCollection Attributes
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (4)
40public override System.ComponentModel.AttributeCollection Attributes 159public override AttributeCollection Attributes 275public override AttributeCollection Attributes 344public override AttributeCollection Attributes
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1088AttributeCollection attributes = TypeDescriptor.GetAttributes(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1836AttributeCollection attributes = TypeDescriptor.GetAttributes(typeAndSerializer.ObjectType);
System (1)
src\libraries\shims\System\ref\System.cs (1)
167[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.AttributeCollection))]
System.ComponentModel.Annotations (11)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (3)
75public override AttributeCollection GetAttributes() 80AttributeCollection attributes = base.GetAttributes(); 88attributes = AttributeCollection.FromExisting(attributes, newAttributes);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (8)
128AttributeCollection attributes = TypeDescriptor.GetAttributes(type); 150internal StoreItem(AttributeCollection attributes) 173internal TypeStoreItem([DynamicallyAccessedMembers(DynamicallyAccessedTypes)] Type type, AttributeCollection attributes) 233/// <returns>A new <see cref="AttributeCollection"/> stripped of any attributes from the property's type.</returns> 235private static AttributeCollection GetExplicitAttributes(PropertyDescriptor propertyDescriptor) 237AttributeCollection propertyDescriptorAttributes = propertyDescriptor.Attributes; 244AttributeCollection typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType); 268internal PropertyStoreItem(Type propertyType, AttributeCollection attributes)
System.ComponentModel.TypeConverter (76)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
38[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\ArrayConverter.cs (1)
31[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\AttributeCollection.cs (3)
21public static readonly AttributeCollection Empty = new AttributeCollection(null); 61public static AttributeCollection FromExisting(AttributeCollection existing, params Attribute[]? newAttributes)
System\ComponentModel\CollectionConverter.cs (1)
33[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\ComponentConverter.cs (1)
25[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\CustomTypeDescriptor.cs (4)
44public virtual AttributeCollection GetAttributes() 51return AttributeCollection.Empty; 155[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 244[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\Design\DesignerOptionService.cs (2)
412public override AttributeCollection Attributes => _property.Attributes; 439[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\ExpandableObjectConverter.cs (1)
25[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
12AttributeCollection GetAttributes(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
17AttributeCollection GetAttributes(); 62[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 74[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\MemberDescriptor.cs (4)
21private AttributeCollection? _attributeCollection; 146public virtual AttributeCollection Attributes 151AttributeCollection? attrs = _attributeCollection; 234protected virtual AttributeCollection CreateAttributeCollection()
System\ComponentModel\MultilineStringConverter.cs (1)
33[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\NullableConverter.cs (1)
162[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\PropertyDescriptor.cs (5)
73AttributeCollection attrs = Attributes; 102AttributeCollection attrs = Attributes; 258[RequiresUnreferencedCode(PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 267[RequiresUnreferencedCode(PropertyDescriptorPropertyTypeMessage + " The Type of instance cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 290AttributeCollection attrs = Attributes;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
310internal AttributeCollection GetAttributes([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) 480internal static AttributeCollection GetExtendedAttributes() 482return AttributeCollection.Empty; 1268AttributeCollection attributes = TypeDescriptor.GetAttributes(providerType);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (5)
21private AttributeCollection? _attributes; 49internal AttributeCollection GetAttributes() 251AttributeCollection attributes; 284AttributeCollection attributes; 414private static EditorAttribute? GetEditorAttribute(AttributeCollection attributes, Type editorBaseType)
System\ComponentModel\TypeConverter.cs (1)
248[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\ComponentModel\TypeDescriptor.cs (33)
560[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 677public static AttributeCollection GetAttributes([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType) 685AttributeCollection attributes = GetDescriptor(componentType, nameof(componentType)).GetAttributes(); 693public static AttributeCollection GetAttributes(object component) 703public static AttributeCollection GetAttributes(object component, bool noCustomTypeDesc) 774if (!(results is AttributeCollection attrs)) 1116[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1166[RequiresUnreferencedCode("The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1177[RequiresUnreferencedCode("The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1353[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1412[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1423[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1434[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " The Type of component cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 1873[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2546AttributeCollection attributes = GetAttributes(component); 2726[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2815AttributeCollection ICustomTypeDescriptor.GetAttributes() => _handler.GetAttributes(_instance); 2847[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2859[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 2916public override AttributeCollection GetAttributes() 2919AttributeCollection existing = base.GetAttributes(); 3090AttributeCollection ICustomTypeDescriptor.GetAttributes() 3092AttributeCollection attrs = _primary.GetAttributes() ?? _secondary.GetAttributes(); 3174[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3198[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3433AttributeCollection ICustomTypeDescriptor.GetAttributes() 3447AttributeCollection attrs = desc.GetAttributes(); 3649[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3719[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 3794public AttributeCollection GetAttributes() 3800AttributeCollection attrs; 4060[RequiresUnreferencedCode(AttributeCollection.FilterRequiresUnreferencedCodeMessage)] 4146[RequiresUnreferencedCode(PropertyDescriptor.PropertyDescriptorPropertyTypeMessage + " " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\Drawing\PointConverter.cs (1)
114[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\Drawing\RectangleConverter.cs (1)
120[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\Drawing\SizeConverter.cs (1)
112[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System\Drawing\SizeFConverter.cs (1)
109[RequiresUnreferencedCode("The Type of value cannot be statically discovered. " + AttributeCollection.FilterRequiresUnreferencedCodeMessage)]
System.Data.Common (7)
System\Data\Common\DataRecordInternal.cs (1)
305AttributeCollection ICustomTypeDescriptor.GetAttributes()
System\Data\Common\DbConnectionStringBuilder.cs (2)
390internal static Attribute[] GetAttributesFromCollection(AttributeCollection collection) 607AttributeCollection ICustomTypeDescriptor.GetAttributes()
System\Data\Common\DbDataRecord.cs (1)
73AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System\Data\DataColumnPropertyDescriptor.cs (1)
18public override AttributeCollection Attributes
System\Data\DataRowView.cs (1)
232AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
34AttributeCollection ICustomTypeDescriptor.GetAttributes() => new AttributeCollection(null);
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2428AttributeCollection ICustomTypeDescriptor.GetAttributes()
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
187public override AttributeCollection Attributes 476protected sealed override AttributeCollection CreateAttributeCollection() => new(AttributeArray);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
27AttributeCollection ICustomTypeDescriptor.GetAttributes() => GetAttributes(_instance);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
240internal static AttributeCollection GetAttributes(object component)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
18AttributeCollection ICustomTypeDescriptor.GetAttributes() => new(s_staticAttributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
81private AttributeCollection? _browsableAttributes; 360public AttributeCollection BrowsableAttributes 365if (value is null || value == AttributeCollection.Empty)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
124protected virtual AttributeCollection Attributes => TypeDescriptor.GetAttributes(PropertyType!); 150public virtual AttributeCollection? BrowsableAttributes 1271AttributeCollection? browsableAttributes = BrowsableAttributes;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\IRootGridEntry.cs (1)
17AttributeCollection BrowsableAttributes { get; set; }
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
178protected override AttributeCollection CreateAttributeCollection() => new MergedAttributeCollection(this);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (2)
14private AttributeCollection[]? _attributeCollections; 28_attributeCollections = new AttributeCollection[_owner._descriptors.Length];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
51protected override AttributeCollection Attributes => PropertyDescriptor.Attributes;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
22private AttributeCollection? _browsableAttributes; 57public override AttributeCollection BrowsableAttributes
System.Windows.Forms.Design (18)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1232AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
157AttributeCollection attributes = TypeDescriptor.GetAttributes(t); 260AttributeCollection attributes = TypeDescriptor.GetAttributes(baseType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
41AttributeCollection attributes = TypeDescriptor.GetAttributes(o);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
274protected static AttributeCollection GetAttributesHelper(IDesignerSerializationManager manager, object instance) 296protected static AttributeCollection GetAttributesFromTypeHelper(IDesignerSerializationManager manager, Type type) 1759AttributeCollection valueAttributes = GetAttributesHelper(manager, value); 1760AttributeCollection typeAttributes = GetAttributesFromTypeHelper(manager, value.GetType());
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
444AttributeCollection attributes = TypeDescriptor.GetAttributes(objectType); 1000public override AttributeCollection Attributes
System\Windows\Forms\Design\ComponentTray.cs (1)
773AttributeCollection attributes = TypeDescriptor.GetAttributes(t);
System\Windows\Forms\Design\ControlDesigner.cs (3)
314if (autoSizeProp?.Attributes is AttributeCollection attributes 934AttributeCollection attributes = TypeDescriptor.GetAttributes(Component); 1159AttributeCollection attributes = TypeDescriptor.GetAttributes(Component);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
207AttributeCollection? attributes = TypeDescriptor.GetAttributes(type);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
1244AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn); 1340public override AttributeCollection Attributes
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1401AttributeCollection attribs = TypeDescriptor.GetAttributes(Component.GetType());
System.Windows.Forms.Tests (16)
System\Windows\Forms\AxHostTests.cs (2)
2331AttributeCollection attributes = customTypeDescriptor.GetAttributes(); 2354AttributeCollection attributes = customTypeDescriptor.GetAttributes();
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
114public AttributeCollection GetAttributes() => throw new NotImplementedException();
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
222var attributes = TypeDescriptor.GetAttributes(vbcontrol);
System\Windows\Forms\ListBindingHelperTests.cs (1)
787public AttributeCollection GetAttributes()
System\Windows\Forms\PropertyGridTests.cs (11)
533yield return new object[] { AttributeCollection.Empty, new AttributeCollection([BrowsableAttribute.Yes]) }; 541public void PropertyGrid_BrowsableAttributes_Set_GetReturnsExpected(AttributeCollection value, AttributeCollection expected) 562public void PropertyGrid_BrowsableAttributes_SetEmptySelectedObjects_GetReturnsExpected(AttributeCollection value, AttributeCollection expected) 584public void PropertyGrid_BrowsableAttributes_SetCustomSelectedObjects_GetReturnsExpected(AttributeCollection value, AttributeCollection expected) 606public void PropertyGrid_BrowsableAttributes_SetWithHandle_GetReturnsExpected(AttributeCollection value, AttributeCollection expected) 3935AttributeCollection browsableAttributes = gridEntry.BrowsableAttributes; 3941AttributeCollection attributes = gridEntry.TestAccessor().Dynamic.Attributes;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
200AttributeCollection newAttributes = new(new BrowsableAttribute(true));
System.Xaml (1)
System\Windows\Markup\ValueSerializer.cs (1)
118AttributeCollection attributes = TypeDescriptor.GetAttributes(type);