89 references to GetAttributes
PresentationFramework (4)
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
177get { return TypeDescriptor.GetAttributes(ObjectType); }
src\Framework\System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
49return TypeDescriptor.GetAttributes(ObjectType);
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1102AttributeCollection attributes = TypeDescriptor.GetAttributes(type);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
1924AttributeCollection attributes = TypeDescriptor.GetAttributes(typeAndSerializer.ObjectType);
System (9)
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (1)
793foreach (Attribute typeAttr in TypeDescriptor.GetAttributes(PropertyType)) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (8)
1137AttributeCollection attributes = TypeDescriptor.GetAttributes(providerType); 1538AttributeCollection ifaceAttrs = TypeDescriptor.GetAttributes(iface); 1631typeAttr = (TypeConverterAttribute)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 1656typeAttr = (TypeConverterAttribute)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 1700attributes = TypeDescriptor.GetAttributes(_type); 1732attributes = TypeDescriptor.GetAttributes(_type); 1766typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType); 1795typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType);
System.Activities.Presentation (23)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
126editor = ExtensibilityMetadataHelper.GetValueEditor(TypeDescriptor.GetAttributes(genericType), MessageLogger.Instance); 862return GetAttribute<T>(type == null ? null : TypeDescriptor.GetAttributes(type)); 872return GetAttributes<T>(type == null ? null : TypeDescriptor.GetAttributes(type));
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (1)
31foreach (Attribute attr in TypeDescriptor.GetAttributes(this.PropertyType))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
68return TypeDescriptor.GetAttributes(this.itemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
252return TypeDescriptor.GetAttributes(this.itemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
70return TypeDescriptor.GetAttributes(itemType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (1)
53DefaultPropertyAttribute propAttr = TypeDescriptor.GetAttributes(item.ItemType)[typeof(DefaultPropertyAttribute)] as DefaultPropertyAttribute;
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
41AttributeCollection attrs = TypeDescriptor.GetAttributes(itemType);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 866PropertyAttributes = TypeDescriptor.GetAttributes(typeof(bool)).OfType<Attribute>().Union( 1255.GetAttributes(argumentType)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (6)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(), 1345.GetAttributes(variableOfType)
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
156TypeDescriptor.GetAttributes(genericType)[typeof(DesignerAttribute)] as DesignerAttribute;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
50ViewManagerAttribute viewManagerAttribute = TypeDescriptor.GetAttributes(modelItem.ItemType)[typeof(ViewManagerAttribute)] as ViewManagerAttribute;
System.ComponentModel.DataAnnotations (3)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
74Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray();
DataAnnotations\ValidationAttributeStore.cs (2)
121TypeDescriptor.GetAttributes(type).Cast<Attribute>(); 233IEnumerable<Attribute> typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType).Cast<Attribute>();
System.Data (23)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
126editor = ExtensibilityMetadataHelper.GetValueEditor(TypeDescriptor.GetAttributes(genericType), MessageLogger.Instance); 862return GetAttribute<T>(type == null ? null : TypeDescriptor.GetAttributes(type)); 872return GetAttributes<T>(type == null ? null : TypeDescriptor.GetAttributes(type));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (1)
31foreach (Attribute attr in TypeDescriptor.GetAttributes(this.PropertyType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
68return TypeDescriptor.GetAttributes(this.itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
252return TypeDescriptor.GetAttributes(this.itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (1)
70return TypeDescriptor.GetAttributes(itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (1)
53DefaultPropertyAttribute propAttr = TypeDescriptor.GetAttributes(item.ItemType)[typeof(DefaultPropertyAttribute)] as DefaultPropertyAttribute;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
41AttributeCollection attrs = TypeDescriptor.GetAttributes(itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 866PropertyAttributes = TypeDescriptor.GetAttributes(typeof(bool)).OfType<Attribute>().Union( 1255.GetAttributes(argumentType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (6)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(), 1345.GetAttributes(variableOfType)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
156TypeDescriptor.GetAttributes(genericType)[typeof(DesignerAttribute)] as DesignerAttribute;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
50ViewManagerAttribute viewManagerAttribute = TypeDescriptor.GetAttributes(modelItem.ItemType)[typeof(ViewManagerAttribute)] as ViewManagerAttribute;
System.Drawing (3)
commonui\System\Drawing\Design\ToolboxItem.cs (3)
746DescriptionAttribute descattr = (DescriptionAttribute)TypeDescriptor.GetAttributes(type)[typeof(DescriptionAttribute)]; 751ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(type)[typeof(ToolboxBitmapAttribute)]; 767foreach (Attribute a in TypeDescriptor.GetAttributes(type)) {
System.Web (9)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (3)
207TypeDescriptor.GetAttributes(builder.ControlType)[typeof(PartialCachingAttribute)]; 271TypeDescriptor.GetAttributes(ctrlType)[typeof(ConstructorNeedsTagAttribute)]; 622TypeDescriptor.GetAttributes(ctrlBuilder.ControlType)[typeof(PartialCachingAttribute)];
UI\FilterableAttribute.cs (1)
108System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type);
UI\TargetFrameworkUtil.cs (1)
444return TypeDescriptor.GetAttributes(type);
UI\TemplateControl.cs (1)
680TypeDescriptor.GetAttributes(t)[typeof(PartialCachingAttribute)];
UI\TemplateParser.cs (1)
1567TypeDescriptor.GetAttributes(childType)[typeof(PartialCachingAttribute)];
UI\ViewStateModeByIdAttribute.cs (1)
24System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type);
UI\WebControls\DataBoundControlHelper.cs (1)
102BindableTypeAttribute bindableTypeAttribute = (BindableTypeAttribute)TypeDescriptor.GetAttributes(type)[typeof(BindableTypeAttribute)];
System.Web.Mobile (5)
UI\MobileControls\Design\MobileControlPersister.cs (3)
153(PersistNameAttribute)TypeDescriptor.GetAttributes(collItem.GetType())[typeof(PersistNameAttribute)]; 184(PersistChildrenAttribute)TypeDescriptor.GetAttributes(collItem.GetType())[typeof(PersistChildrenAttribute)]; 899(PersistChildrenAttribute)TypeDescriptor.GetAttributes(control.GetType())[typeof(PersistChildrenAttribute)];
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
1086return TypeDescriptor.GetAttributes(this.GetType());
UI\MobileControls\DesignerDeviceConfig.cs (1)
38TypeDescriptor.GetAttributes(originalControlType)
System.Windows.Forms (5)
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2812PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(e.Component.GetType())[typeof(PropertyTabAttribute)]; 2848PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(e.Component.GetType())[typeof(PropertyTabAttribute)]; 3959PropertyTabAttribute attribute = (PropertyTabAttribute) TypeDescriptor.GetAttributes(comp.GetType())[typeof(PropertyTabAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
216return TypeDescriptor.GetAttributes(PropertyType); 502bool isImmutableReadOnly = TypeDescriptor.GetAttributes(this.PropertyType)[typeof(ImmutableObjectAttribute)].Equals(ImmutableObjectAttribute.Yes);
System.Workflow.Activities (1)
Common\BasePropertyDescriptor.cs (1)
466attributes.AddRange(TypeDescriptor.GetAttributes(PropertyType));
System.Workflow.ComponentModel (4)
AuthoringOM\Design\ActivityDesigner.cs (1)
1993AttributeCollection attribs = TypeDescriptor.GetAttributes(activityType);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
664ToolboxBitmapAttribute toolboxBitmapAttribute = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(draggedActivities[0].GetType())[typeof(ToolboxBitmapAttribute)];
AuthoringOM\Design\Themes.cs (1)
701AttributeCollection attributeCollection = TypeDescriptor.GetAttributes(designerType);
Shared\BasePropertyDescriptor.cs (1)
465attributes.AddRange(TypeDescriptor.GetAttributes(PropertyType));