33 references to GetAttributes
PresentationFramework (4)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
161get { return TypeDescriptor.GetAttributes(ObjectType); }
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
38return TypeDescriptor.GetAttributes(ObjectType);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1081AttributeCollection attributes = TypeDescriptor.GetAttributes(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1834AttributeCollection attributes = TypeDescriptor.GetAttributes(typeAndSerializer.ObjectType);
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
87Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (2)
128AttributeCollection attributes = TypeDescriptor.GetAttributes(type); 244AttributeCollection typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType);
System.ComponentModel.TypeConverter (9)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
776foreach (Attribute typeAttr in TypeDescriptor.GetAttributes(PropertyType))
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1268AttributeCollection attributes = TypeDescriptor.GetAttributes(providerType);
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (7)
110attributes.AddRange(TypeDescriptor.GetAttributes(iface).Attributes); 195typeAttr = (TypeConverterAttribute?)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 215typeAttr ??= (TypeConverterAttribute?)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 259attributes = TypeDescriptor.GetAttributes(_type); 292attributes = TypeDescriptor.GetAttributes(_type); 326typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType); 353typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType);
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
124protected virtual AttributeCollection Attributes => TypeDescriptor.GetAttributes(PropertyType!); 385bool hasImmutableAttribute = TypeDescriptor.GetAttributes(PropertyType!)[typeof(ImmutableObjectAttribute)]!
System.Windows.Forms.Design (12)
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\CodeDomSerializerBase.cs (1)
322return TypeDescriptor.GetAttributes(type);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
444AttributeCollection attributes = TypeDescriptor.GetAttributes(objectType); 489DefaultSerializationProviderAttribute? attribute = (DefaultSerializationProviderAttribute?)TypeDescriptor.GetAttributes(serializerType)[typeof(DefaultSerializationProviderAttribute)];
System\Drawing\Design\ToolboxItem.cs (1)
616foreach (Attribute a in TypeDescriptor.GetAttributes(type))
System\Windows\Forms\Design\ComponentTray.cs (1)
773AttributeCollection attributes = TypeDescriptor.GetAttributes(t);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
206AttributeCollection? attributes = TypeDescriptor.GetAttributes(type);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
102DataGridViewColumnDesignTimeVisibleAttribute? attr = TypeDescriptor.GetAttributes(t)[typeof(DataGridViewColumnDesignTimeVisibleAttribute)] as DataGridViewColumnDesignTimeVisibleAttribute;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1401AttributeCollection attribs = TypeDescriptor.GetAttributes(Component.GetType());
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
286ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)TypeDescriptor.GetAttributes(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\DesignerHostTests.cs (1)
653.Returns(TypeDescriptor.GetAttributes(typeof(CustomTypeDescriptionProviderComponent)));
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeDescriptorHelper.cs (1)
22attribute = TypeDescriptor.GetAttributes(componentType)[typeof(T)] as T;
System.Xaml (1)
System\Windows\Markup\ValueSerializer.cs (1)
117AttributeCollection attributes = TypeDescriptor.GetAttributes(type);