38 references to GetAttributes
System (6)
compmod\system\componentmodel\Container.cs (1)
251
InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.
GetAttributes
(s.Component)[typeof(InheritanceAttribute)];
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (4)
1632
TypeConverterAttribute instanceAttr = (TypeConverterAttribute)TypeDescriptor.
GetAttributes
(instance)[typeof(TypeConverterAttribute)];
1696
attributes = TypeDescriptor.
GetAttributes
(instance);
1728
attributes = TypeDescriptor.
GetAttributes
(instance);
1767
EditorAttribute instanceAttr = GetEditorAttribute(TypeDescriptor.
GetAttributes
(instance), editorBaseType);
compmod\system\componentmodel\TypeDescriptor.cs (1)
582
AttributeCollection attributes =
GetAttributes
(component);
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (1)
470
attributes = TypeDescriptor.
GetAttributes
(editor);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
79
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
232
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
263
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance.Value)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
387
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance.Value)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
83
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
227
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (1)
470
attributes = TypeDescriptor.
GetAttributes
(editor);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
79
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
232
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
263
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance.Value)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
387
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance.Value)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
83
ContentPropertyAttribute contentAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
227
RuntimeNamePropertyAttribute runtimeNamePropertyAttribute = TypeDescriptor.
GetAttributes
(this.instance)[typeof(RuntimeNamePropertyAttribute)] as RuntimeNamePropertyAttribute;
System.Web (4)
ModelBinding\ControlValueProvider.cs (1)
39
ControlValuePropertyAttribute controlValueProp = (ControlValuePropertyAttribute)TypeDescriptor.
GetAttributes
(foundControl)[typeof(ControlValuePropertyAttribute)];
UI\WebControls\BaseValidator.cs (1)
542
ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.
GetAttributes
(component)[typeof(ValidationPropertyAttribute)];
UI\WebControls\ControlParameter.cs (1)
162
ControlValuePropertyAttribute controlValueProp = (ControlValuePropertyAttribute)TypeDescriptor.
GetAttributes
(foundControl)[typeof(ControlValuePropertyAttribute)];
UI\WebControls\ValidatedControlConverter.cs (1)
23
ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.
GetAttributes
(control)[typeof(ValidationPropertyAttribute)];
System.Web.Mobile (1)
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
152
TypeDescriptor.
GetAttributes
(control)[typeof(ValidationPropertyAttribute)];
System.Windows.Forms (10)
winforms\Managed\System\WinForms\Binding.cs (1)
527
InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.
GetAttributes
(control)[typeof(InheritanceAttribute)];
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2533
PropertyTabAttribute tabAttr = (PropertyTabAttribute) TypeDescriptor.
GetAttributes
(objs[0])[typeof(PropertyTabAttribute)];
2562
tabAttr = (PropertyTabAttribute) TypeDescriptor.
GetAttributes
(objs[i])[typeof(PropertyTabAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
490
forceReadOnly |= TypeDescriptor.
GetAttributes
(value).Contains(InheritanceAttribute.InheritedReadOnly);
1544
ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.
GetAttributes
(obj)[typeof(ReadOnlyAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (2)
39
ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.
GetAttributes
(obj)[typeof(ReadOnlyAttribute)];
40
if ((readOnlyAttr != null && !readOnlyAttr.IsDefaultAttribute()) || TypeDescriptor.
GetAttributes
(obj).Contains(InheritanceAttribute.InheritedReadOnly)) {
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
157
ReadOnlyAttribute readOnlyAttr = (ReadOnlyAttribute)TypeDescriptor.
GetAttributes
(this.objValue)[typeof(ReadOnlyAttribute)];
158
if ((readOnlyAttr != null && !readOnlyAttr.IsDefaultAttribute()) || TypeDescriptor.
GetAttributes
(this.objValue).Contains(InheritanceAttribute.InheritedReadOnly)) {
190
HelpKeywordAttribute helpAttribute = (HelpKeywordAttribute)TypeDescriptor.
GetAttributes
(objValue)[typeof(HelpKeywordAttribute)];
System.Workflow.ComponentModel (2)
AuthoringOM\Design\ActivityDesigner.cs (1)
1203
DefaultEventAttribute defaultEventAttribute = TypeDescriptor.
GetAttributes
(Activity)[typeof(DefaultEventAttribute)] as DefaultEventAttribute;
AuthoringOM\Design\CustomActivityDesigner.cs (1)
138
AttributeCollection attribs = TypeDescriptor.
GetAttributes
(component);
WindowsBase (1)
Base\System\Windows\AttachedPropertyBrowsableWhenAttributePresentAttribute.cs (1)
96
Attribute a = TypeDescriptor.
GetAttributes
(d)[_attributeType];