23 references to GetCustomAttribute
mscorlib (1)
system\reflection\CustomAttributeExtensions.cs (1)
18
return Attribute.
GetCustomAttribute
(element, attributeType);
PresentationFramework (5)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (3)
249
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.
GetCustomAttribute
(nextElement.GetType(), typeof(TextElementEditingBehaviorAttribute));
471
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.
GetCustomAttribute
(thisElement.ParentType, typeof(TextElementEditingBehaviorAttribute));
1764
TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.
GetCustomAttribute
(navigator.ParentType, typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\Windows\Documents\TextSchema.cs (1)
289
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.
GetCustomAttribute
(elementType, typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\windows\Documents\TextSelection.cs (1)
1492
TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.
GetCustomAttribute
(element.GetType(), typeof(TextElementEditingBehaviorAttribute));
System.ComponentModel.DataAnnotations (1)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
106
MetadataTypeAttribute attribute = (MetadataTypeAttribute)Attribute.
GetCustomAttribute
(type, typeof(MetadataTypeAttribute));
System.Configuration (7)
System\Configuration\ConfigurationElement.cs (5)
742
Attribute.
GetCustomAttribute
(propertyInformation,
751
Attribute.
GetCustomAttribute
(propertyInformation,
757
Attribute.
GetCustomAttribute
(propertyType,
815
ConfigurationValidatorAttribute attribValidator = Attribute.
GetCustomAttribute
(type, typeof(ConfigurationValidatorAttribute)) as ConfigurationValidatorAttribute;
845
Attribute.
GetCustomAttribute
(propertyInformation,
System\Configuration\ConfigurationProperty.cs (2)
131
Attribute.
GetCustomAttribute
(info,
137
Attribute.
GetCustomAttribute
(propertyType,
System.Core (2)
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
521
if (Attribute.
GetCustomAttribute
(node.Method, typeof(ExtensionAttribute)) != null) {
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
127
Attribute dispIdAttribute = Attribute.
GetCustomAttribute
(methodInfo, typeof(DispIdAttribute));
System.Data.Linq (3)
Mapping\AttributedMetaModel.cs (3)
1036
this.attrColumn = (ColumnAttribute)Attribute.
GetCustomAttribute
(mi, typeof(ColumnAttribute));
1037
this.attrAssoc = (AssociationAttribute)Attribute.
GetCustomAttribute
(mi, typeof(AssociationAttribute));
1364
AssociationAttribute oattr = (AssociationAttribute)Attribute.
GetCustomAttribute
(omm.Member, typeof(AssociationAttribute));
System.Web (2)
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
273
UrlPropertyAttribute urlAttrib = Attribute.
GetCustomAttribute
(pse.PropertyInfo, typeof(UrlPropertyAttribute)) as UrlPropertyAttribute;
UI\ThemeableAttribute.cs (1)
100
ThemeableAttribute attr = Attribute.
GetCustomAttribute
(type, typeof(ThemeableAttribute)) as ThemeableAttribute;
System.Workflow.Activities (1)
Common\CompModHelpers.cs (1)
732
designerSerializationVisibility = (Attribute.
GetCustomAttribute
(memberInfo, typeof(DesignerSerializationVisibilityAttribute)) as DesignerSerializationVisibilityAttribute).Visibility;
System.Workflow.ComponentModel (1)
Shared\CompModHelpers.cs (1)
730
designerSerializationVisibility = (Attribute.
GetCustomAttribute
(memberInfo, typeof(DesignerSerializationVisibilityAttribute)) as DesignerSerializationVisibilityAttribute).Visibility;