41 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)
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 (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)
359get => _browsableAttributes ??= new(BrowsableAttribute.Yes); 364_browsableAttributes = new(BrowsableAttribute.Yes); 370_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)
1338return new AttributeCollection(attrs);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\EditorServiceContextTests.cs (2)
53_mockPropertyDescriptor.Setup(p => p.Attributes).Returns(new AttributeCollection(null)); 80_mockPropertyDescriptor.Setup(p => p.Attributes).Returns(new AttributeCollection(null));
System.Windows.Forms.Tests (8)
System\Windows\Forms\PropertyGridTests.cs (8)
534yield return new object[] { null, new AttributeCollection([BrowsableAttribute.Yes]) }; 535yield return new object[] { AttributeCollection.Empty, new AttributeCollection([BrowsableAttribute.Yes]) }; 536yield return new object[] { new AttributeCollection(), new AttributeCollection() }; 537yield return new object[] { new AttributeCollection([BrowsableAttribute.Yes]), new AttributeCollection([BrowsableAttribute.Yes]) }; 538yield 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));