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