32 references to GetAttributes
PresentationFramework (4)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
160
get { return TypeDescriptor.
GetAttributes
(ObjectType); }
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
37
return TypeDescriptor.
GetAttributes
(ObjectType);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1083
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1829
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(typeAndSerializer.ObjectType);
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
87
Attribute[] newAttributes = TypeDescriptor.
GetAttributes
(AssociatedMetadataType).OfType<Attribute>().ToArray();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (2)
128
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(type);
244
AttributeCollection typeAttributes = TypeDescriptor.
GetAttributes
(propertyDescriptor.PropertyType);
System.ComponentModel.TypeConverter (9)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
776
foreach (Attribute typeAttr in TypeDescriptor.
GetAttributes
(PropertyType))
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1264
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(providerType);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (7)
110
attributes.AddRange(TypeDescriptor.
GetAttributes
(iface).Attributes);
195
typeAttr = (TypeConverterAttribute?)TypeDescriptor.
GetAttributes
(_type)[typeof(TypeConverterAttribute)];
215
typeAttr ??= (TypeConverterAttribute?)TypeDescriptor.
GetAttributes
(_type)[typeof(TypeConverterAttribute)];
259
attributes = TypeDescriptor.
GetAttributes
(_type);
292
attributes = TypeDescriptor.
GetAttributes
(_type);
326
typeAttr = GetEditorAttribute(TypeDescriptor.
GetAttributes
(_type), editorBaseType);
353
typeAttr = GetEditorAttribute(TypeDescriptor.
GetAttributes
(_type), editorBaseType);
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
124
protected virtual AttributeCollection Attributes => TypeDescriptor.
GetAttributes
(PropertyType!);
376
bool hasImmutableAttribute = TypeDescriptor.
GetAttributes
(PropertyType!)[typeof(ImmutableObjectAttribute)]!
System.Windows.Forms.Design (12)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1240
AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.
GetAttributes
(PropertyType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
157
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(t);
260
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(baseType);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
322
return TypeDescriptor.
GetAttributes
(type);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
444
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(objectType);
489
DefaultSerializationProviderAttribute? attribute = (DefaultSerializationProviderAttribute?)TypeDescriptor.
GetAttributes
(serializerType)[typeof(DefaultSerializationProviderAttribute)];
System\Drawing\Design\ToolboxItem.cs (1)
616
foreach (Attribute a in TypeDescriptor.
GetAttributes
(type))
System\Windows\Forms\Design\ComponentTray.cs (1)
767
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(t);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
206
AttributeCollection? attributes = TypeDescriptor.
GetAttributes
(type);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
102
DataGridViewColumnDesignTimeVisibleAttribute? attr = TypeDescriptor.
GetAttributes
(t)[typeof(DataGridViewColumnDesignTimeVisibleAttribute)] as DataGridViewColumnDesignTimeVisibleAttribute;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1395
AttributeCollection attribs = TypeDescriptor.
GetAttributes
(Component.GetType());
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
286
ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)TypeDescriptor.
GetAttributes
(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeDescriptorHelper.cs (1)
22
attribute = TypeDescriptor.
GetAttributes
(componentType)[typeof(T)] as T;
System.Xaml (1)
System\Windows\Markup\ValueSerializer.cs (1)
114
AttributeCollection attributes = TypeDescriptor.
GetAttributes
(type);