16 references to GetCustomAttribute
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (1)
180var attribute = Attribute.GetCustomAttribute(type, typeof(LanguageServerEndpointAttribute)) as LanguageServerEndpointAttribute;
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
MethodHandlerDetails.cs (1)
180var attribute = Attribute.GetCustomAttribute(type, typeof(LanguageServerEndpointAttribute)) as LanguageServerEndpointAttribute;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\Common\Internal\EnumExtensions.cs (1)
24Attribute.GetCustomAttribute(field, typeof(DescriptionAttribute)) as DescriptionAttribute;
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
1256Attribute.GetCustomAttribute(field,
PresentationFramework (5)
System\Windows\Documents\TextRangeSerialization.cs (3)
237TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(nextElement.GetType(), typeof(TextElementEditingBehaviorAttribute)); 459TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.ParentType, typeof(TextElementEditingBehaviorAttribute)); 1738TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.ParentType, typeof(TextElementEditingBehaviorAttribute));
System\Windows\Documents\TextSchema.cs (1)
286TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(elementType, typeof(TextElementEditingBehaviorAttribute));
System\windows\Documents\TextSelection.cs (1)
1486TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(element.GetType(), typeof(TextElementEditingBehaviorAttribute));
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
125MetadataTypeAttribute? attribute = (MetadataTypeAttribute?)Attribute.GetCustomAttribute(type, typeof(MetadataTypeAttribute));
System.Configuration.ConfigurationManager (4)
System\Configuration\ConfigurationElement.cs (2)
738Attribute.GetCustomAttribute(type, typeof(ConfigurationValidatorAttribute)) as 767Attribute.GetCustomAttribute(propertyInformation,
System\Configuration\ConfigurationProperty.cs (2)
129Attribute.GetCustomAttribute(info, 131Attribute.GetCustomAttribute(propertyType,
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeExtensions.cs (1)
21return Attribute.GetCustomAttribute(element, attributeType);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
120Attribute? dispIdAttribute = Attribute.GetCustomAttribute(methodInfo, typeof(DispIdAttribute));