1 override of
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (1)
538
public override Attribute
this
[Type attributeType] {
112 references to
PresentationFramework (10)
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
144
ConstructorArgumentAttribute constructorArgumentAttribute = descriptor.Attributes
[
typeof(ConstructorArgumentAttribute)] as ConstructorArgumentAttribute;
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (8)
500
ContentPropertyAttribute cpa = item.Attributes
[
typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
501
XmlLangPropertyAttribute xlpa = item.Attributes
[
typeof(XmlLangPropertyAttribute)] as XmlLangPropertyAttribute;
502
UidPropertyAttribute upa = item.Attributes
[
typeof(UidPropertyAttribute)] as UidPropertyAttribute;
564
if (property.Attributes
[
typeof(DesignerSerializationOptionsAttribute)] != null)
566
DesignerSerializationOptionsAttribute option = property.Attributes
[
typeof(DesignerSerializationOptionsAttribute)] as DesignerSerializationOptionsAttribute;
1103
if (attributes
[
typeof(ContentWrapperAttribute)] == null)
1122
ContentPropertyAttribute cpa = item.Attributes
[
typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
1251
TrimSurroundingWhitespaceAttribute attribute = item.Attributes
[
typeof(TrimSurroundingWhitespaceAttribute)] as TrimSurroundingWhitespaceAttribute;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
1928
XmlLangPropertyAttribute xlpa = attributes
[
typeof(XmlLangPropertyAttribute)] as XmlLangPropertyAttribute;
System (22)
compmod\system\componentmodel\AttributeCollection.cs (1)
276
Attribute attr = this
[
attribute.GetType()];
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (3)
58
ExtenderProvidedPropertyAttribute attr = extender.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
92
return Attributes
[
typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes);
114
DisplayNameAttribute displayNameAttr = Attributes
[
typeof(DisplayNameAttribute)] as DisplayNameAttribute;
compmod\system\componentmodel\MemberDescriptor.cs (5)
184
category = ((CategoryAttribute)Attributes
[
typeof(CategoryAttribute)]).Category;
199
description = ((DescriptionAttribute) Attributes
[
typeof(DescriptionAttribute)]).Description;
213
return((BrowsableAttribute)Attributes
[
typeof(BrowsableAttribute)]).Browsable;
252
return(DesignOnlyAttribute.Yes.Equals(Attributes
[
typeof(DesignOnlyAttribute)]));
264
DisplayNameAttribute displayNameAttr = Attributes
[
typeof(DisplayNameAttribute)] as DisplayNameAttribute;
compmod\system\componentmodel\PropertyDescriptor.cs (3)
91
TypeConverterAttribute attr = (TypeConverterAttribute)attrs
[
typeof(TypeConverterAttribute)];
117
return(LocalizableAttribute.Yes.Equals(Attributes
[
typeof(LocalizableAttribute)]));
138
DesignerSerializationVisibilityAttribute attr = (DesignerSerializationVisibilityAttribute)Attributes
[
typeof(DesignerSerializationVisibilityAttribute)];
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (3)
246
Attribute a = Attributes
[
typeof(AmbientValueAttribute)];
319
Attribute a = Attributes
[
typeof(DefaultValueAttribute)];
390
return SetMethodValue == null || ((ReadOnlyAttribute)Attributes
[
typeof(ReadOnlyAttribute)]).IsReadOnly;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (3)
525
ExtenderProvidedPropertyAttribute eppa = prop.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
1703
DefaultEventAttribute attr = (DefaultEventAttribute)attributes
[
typeof(DefaultEventAttribute)];
1735
DefaultPropertyAttribute attr = (DefaultPropertyAttribute)attributes
[
typeof(DefaultPropertyAttribute)];
compmod\system\componentmodel\TypeConverter.cs (2)
509
DefaultValueAttribute attr = (DefaultValueAttribute)Attributes
[
typeof(DefaultValueAttribute)];
521
DefaultValueAttribute attr = (DefaultValueAttribute)Attributes
[
typeof(DefaultValueAttribute)];
compmod\system\componentmodel\TypeDescriptor.cs (2)
1891
ExtenderProvidedPropertyAttribute exAttr = member.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
3305
Attribute memberAttribute = member.Attributes
[
attribute.GetType()];
System.Activities (1)
System\Activities\Activity.cs (1)
1671
return propertyDescriptor.Attributes
[
typeof(RequiredArgumentAttribute)] != null;
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
830
DefaultValueAttribute dva = (DefaultValueAttribute)Attributes
[
typeof(DefaultValueAttribute)];
853
AmbientValueAttribute ava = (AmbientValueAttribute)Attributes
[
typeof(AmbientValueAttribute)];
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (1)
87
DefaultValueAttribute defaultValueAttribute = this.propertyDescriptor.Attributes
[
typeof(DefaultValueAttribute)] as DefaultValueAttribute;
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
42
TypeConverterAttribute tca = attrs
[
typeof(TypeConverterAttribute)] as TypeConverterAttribute;
System.Data (5)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (2)
830
DefaultValueAttribute dva = (DefaultValueAttribute)Attributes
[
typeof(DefaultValueAttribute)];
853
AmbientValueAttribute ava = (AmbientValueAttribute)Attributes
[
typeof(AmbientValueAttribute)];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyImpl.cs (1)
87
DefaultValueAttribute defaultValueAttribute = this.propertyDescriptor.Attributes
[
typeof(DefaultValueAttribute)] as DefaultValueAttribute;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
42
TypeConverterAttribute tca = attrs
[
typeof(TypeConverterAttribute)] as TypeConverterAttribute;
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (1)
461
Attribute attr = property.Attributes
[
attribute.GetType()];
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
607
Attribute propertyAttribute = property.Attributes
[
filterAttribute.GetType()];
System.Web (9)
UI\ControlBuilder.cs (1)
3129
ThemeableAttribute attr = (ThemeableAttribute)propDesc.Attributes
[
typeof(ThemeableAttribute)];
UI\FilterableAttribute.cs (2)
91
FilterableAttribute filterableAttr = (FilterableAttribute)propertyDescriptor.Attributes
[
typeof(FilterableAttribute)];
109
FilterableAttribute attr = (FilterableAttribute)attrs
[
typeof(FilterableAttribute)];
UI\SkinBuilder.cs (3)
106
if (value != null && desc.Attributes
[
typeof(UrlPropertyAttribute)] != null &&
133
DefaultValueAttribute defValAttr = (DefaultValueAttribute)desc.Attributes
[
typeof(DefaultValueAttribute)];
145
if (value != null && desc.Attributes
[
typeof(UrlPropertyAttribute)] != null &&
UI\ViewStateModeByIdAttribute.cs (1)
25
ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs
[
typeof(ViewStateModeByIdAttribute)];
UI\WebParts\PropertyGridEditorPart.cs (2)
214
WebDescriptionAttribute attribute = (WebDescriptionAttribute)pd.Attributes
[
typeof(WebDescriptionAttribute)];
224
WebDisplayNameAttribute attribute = (WebDisplayNameAttribute)pd.Attributes
[
typeof(WebDisplayNameAttribute)];
System.Web.DataVisualization (13)
Common\Utilities\XmlSerializer.cs (13)
377
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
455
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
870
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
917
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1074
TypeConverterAttribute typeConverterAttrib = (TypeConverterAttribute)pd.Attributes
[
typeof(TypeConverterAttribute)];
1448
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1539
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1707
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
1732
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2338
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2389
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2603
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
2628
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
79
(System.ComponentModel.BrowsableAttribute)property.Attributes
[
typeof(System.ComponentModel.BrowsableAttribute)];
System.Web.Mobile (4)
UI\MobileControls\Design\MobileControlPersister.cs (3)
366
PersistenceModeAttribute persistenceMode = (PersistenceModeAttribute)propDescs[i].Attributes
[
typeof(PersistenceModeAttribute)];
529
DesignOnlyAttribute doAttr = (DesignOnlyAttribute)properties[i].Attributes
[
typeof(DesignOnlyAttribute)];
542
(DefaultValueAttribute)properties[i].Attributes
[
typeof(DefaultValueAttribute)];
UI\MobileControls\ObjectList.cs (1)
859
(ObjectListTitleAttribute)pd.Attributes
[
typeof(ObjectListTitleAttribute)];
System.Windows.Forms (18)
misc\ImageListUtils.cs (1)
24
RelatedImageListAttribute relILAttr = currentComponent.Attributes
[
typeof(RelatedImageListAttribute)] as RelatedImageListAttribute;
winforms\Managed\System\WinForms\AxHost.cs (4)
2947
Attribute attr = prop.Attributes
[
typeof(BrowsableAttribute)];
6980
dispid = (DispIdAttribute)baseProp.Attributes
[
typeof(DispIdAttribute)];
7028
DispIdAttribute dispid = (DispIdAttribute)baseProp.Attributes
[
typeof(DispIdAttribute)];
7282
ComAliasNameAttribute comAlias = (ComAliasNameAttribute)baseProp.Attributes
[
typeof(ComAliasNameAttribute)];
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (1)
108
bool pfHide = sender.Attributes
[
typeof(BrowsableAttribute)].Equals(BrowsableAttribute.No);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
484
this.readOnly |= (this.Attributes
[
typeof(ReadOnlyAttribute)].Equals(ReadOnlyAttribute.Yes));
739
TypeConverterAttribute attr = (TypeConverterAttribute)Attributes
[
typeof(TypeConverterAttribute)];
784
EditorAttribute attr = (EditorAttribute)Attributes
[
typeof(EditorAttribute)];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2483
if (((ParenthesizePropertyNameAttribute)props[i].Attributes
[
typeof(ParenthesizePropertyNameAttribute)]).NeedParenthesis) {
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (3)
164
bool match = pivotDesc.Attributes
[
typeof(MergablePropertyAttribute)].IsDefaultAttribute();
179
if (!jProp.Attributes
[
typeof(MergablePropertyAttribute)].IsDefaultAttribute()) {
199
if (!jProp.Attributes
[
typeof(MergablePropertyAttribute)].IsDefaultAttribute()) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (5)
87
MergablePropertyAttribute mpa = (MergablePropertyAttribute)propertyInfo.Attributes
[
typeof(MergablePropertyAttribute)];
111
HelpKeywordAttribute helpAttribute = (HelpKeywordAttribute)propertyInfo.Attributes
[
typeof(HelpKeywordAttribute)];
226
if (((ParenthesizePropertyNameAttribute)propertyInfo.Attributes
[
typeof(ParenthesizePropertyNameAttribute)]).NeedParenthesis) {
420
RefreshPropertiesAttribute refreshAttr = (RefreshPropertiesAttribute)propertyInfo.Attributes
[
typeof(RefreshPropertiesAttribute)];
690
RefreshPropertiesAttribute refreshAttr = (RefreshPropertiesAttribute)propertyInfo.Attributes
[
typeof(RefreshPropertiesAttribute)];
System.Windows.Forms.DataVisualization (13)
Common\Utilities\XmlSerializer.cs (13)
377
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
455
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
870
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
917
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1074
TypeConverterAttribute typeConverterAttrib = (TypeConverterAttribute)pd.Attributes
[
typeof(TypeConverterAttribute)];
1448
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1539
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
1707
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
1732
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2338
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2389
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
2603
DefaultValueAttribute defValueAttribute = (DefaultValueAttribute)pd.Attributes
[
typeof(DefaultValueAttribute)];
2628
SerializationVisibilityAttribute styleAttribute = (SerializationVisibilityAttribute)pd.Attributes
[
typeof(SerializationVisibilityAttribute)];
System.Workflow.Activities (1)
Designers\WebServiceReceiveDesigner.cs (1)
114
TypeFilterProviderAttribute filterProviderAttribute = this.Attributes
[
typeof(TypeFilterProviderAttribute)] as TypeFilterProviderAttribute;
System.Workflow.ComponentModel (8)
AuthoringOM\Design\ActivityDesigner.cs (1)
1287
ExtenderProvidedPropertyAttribute eppa = prop.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
AuthoringOM\Design\PropertyDescriptors.cs (2)
827
BrowsableAttribute browsable = property.Attributes
[
typeof(BrowsableAttribute)] as BrowsableAttribute;
844
BrowsableAttribute browsable = e.Attributes
[
typeof(BrowsableAttribute)] as BrowsableAttribute;
AuthoringOM\Design\Themes.cs (3)
702
ActivityDesignerThemeAttribute themeAttrib = attributeCollection
[
typeof(ActivityDesignerThemeAttribute)] as ActivityDesignerThemeAttribute;
3225
DispIdAttribute prop1DispID = property1.Attributes
[
typeof(DispIdAttribute)] as DispIdAttribute;
3226
DispIdAttribute prop2DispID = property2.Attributes
[
typeof(DispIdAttribute)] as DispIdAttribute;
AuthoringOM\Design\UITypeEditors.cs (1)
47
typeFilterProvAttr = typeDescriptorContext.PropertyDescriptor.Attributes
[
typeof(TypeFilterProviderAttribute)] as TypeFilterProviderAttribute;
AuthoringOM\Design\XomlDesignerLoader.cs (1)
882
DefaultPropertyAttribute aliasPropertyNameAttribute = propDesc.Attributes
[
typeof(DefaultPropertyAttribute)] as DefaultPropertyAttribute;
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
689
Attribute propertyAttribute = property.Attributes
[
filterAttribute.GetType()];
WindowsBase (1)
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (1)
99
DependencyPropertyAttribute dpa = property.Attributes
[
typeof(DependencyPropertyAttribute)] as DependencyPropertyAttribute;