30 references to AttributeCollection
PresentationFramework (2)
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (2)
270get { return new AttributeCollection(); } 339get { return new AttributeCollection(); }
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
259return removedAttribute ? new AttributeCollection(attributes.ToArray()) : propertyDescriptorAttributes;
System.ComponentModel.TypeConverter (11)
System\ComponentModel\AttributeCollection.cs (3)
21public static readonly AttributeCollection Empty = new AttributeCollection(null); 54protected AttributeCollection() : this(Array.Empty<Attribute>()) 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)
691return new AttributeCollection(null); 717return new AttributeCollection(null); 787attrs = new AttributeCollection(attrArray); 2106cacheValue = new AttributeCollection(attrArray); 2261cacheValue = new AttributeCollection(attrArray); 2957return 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 (10)
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)
361get => _browsableAttributes ??= new(BrowsableAttribute.Yes); 366_browsableAttributes = new(BrowsableAttribute.Yes); 372_browsableAttributes = new(attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
17public MergedAttributeCollection(MergePropertyDescriptor owner) : base(attributes: null)
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)
1332return new AttributeCollection(attrs);