30 references to AttributeCollection
PresentationFramework (2)
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (2)
270
get { return new
AttributeCollection
(); }
339
get { return new
AttributeCollection
(); }
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
259
return removedAttribute ? new
AttributeCollection
(attributes.ToArray()) : propertyDescriptorAttributes;
System.ComponentModel.TypeConverter (11)
System\ComponentModel\AttributeCollection.cs (3)
21
public static readonly AttributeCollection Empty = new
AttributeCollection
(null);
54
protected AttributeCollection() :
this
(Array.Empty<Attribute>())
106
return new
AttributeCollection
(attributes);
System\ComponentModel\MemberDescriptor.cs (1)
236
return new
AttributeCollection
(AttributeArray);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
146
_attributes = new
AttributeCollection
(attributes.ToArray());
System\ComponentModel\TypeDescriptor.cs (6)
691
return new
AttributeCollection
(null);
717
return new
AttributeCollection
(null);
787
attrs = new
AttributeCollection
(attrArray);
2106
cacheValue = new
AttributeCollection
(attrArray);
2261
cacheValue = new
AttributeCollection
(attrArray);
2957
return new
AttributeCollection
(finalAttr);
System.Data.Common (5)
System\Data\Common\DataRecordInternal.cs (1)
307
return new
AttributeCollection
(null);
System\Data\Common\DbDataRecord.cs (1)
73
AttributeCollection ICustomTypeDescriptor.GetAttributes() => new
AttributeCollection
(null);
System\Data\DataColumnPropertyDescriptor.cs (1)
29
return new
AttributeCollection
(attrs);
System\Data\DataRowView.cs (1)
232
AttributeCollection ICustomTypeDescriptor.GetAttributes() => new
AttributeCollection
(null);
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
34
AttributeCollection ICustomTypeDescriptor.GetAttributes() => new
AttributeCollection
(null);
System.Windows.Forms (10)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
476
protected sealed override AttributeCollection CreateAttributeCollection() =>
new
(AttributeArray);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
255
return attributes.Count == 0 ?
new
(s_staticAttributes) :
new
(attributes.ToArray());
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
18
AttributeCollection ICustomTypeDescriptor.GetAttributes() =>
new
(s_staticAttributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
361
get => _browsableAttributes ??=
new
(BrowsableAttribute.Yes);
366
_browsableAttributes =
new
(BrowsableAttribute.Yes);
372
_browsableAttributes =
new
(attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
17
public MergedAttributeCollection(MergePropertyDescriptor owner) :
base
(attributes: null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
59
get => _browsableAttributes ??=
new
(BrowsableAttribute.Yes);
215
public void ResetBrowsableAttributes() => _browsableAttributes =
new
(BrowsableAttribute.Yes);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1332
return new
AttributeCollection
(attrs);