Implemented interface member:
method
GetCustomAttributes
System.Reflection.ICustomAttributeProvider.GetCustomAttributes(System.Type, System.Boolean)
48 overrides of GetCustomAttributes
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
85public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
43public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _ctor.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
346public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
50public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _field.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
48public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
56public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
545public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
267public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
197public override object[] GetCustomAttributes(Type attributeType, bool inherit) => _unmodifiedType.GetCustomAttributes(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
172public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
169public override object[] GetCustomAttributes(Type attributeType, bool inherit) => typeImpl.GetCustomAttributes(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
58public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (1)
112public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
271public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
118public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
212public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
487public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
180public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
989public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\Emit\SymbolMethod.cs (1)
122public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
134public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\RuntimeEventInfo.cs (1)
94public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\RuntimeFieldInfo.cs (1)
65public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
177public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\System\Reflection\RuntimePropertyInfo.cs (1)
142public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Reflection.Context (8)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
91public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
85public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
76public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
113public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
106public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
200public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
97public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
156public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Reflection.Emit (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
48public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
545public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Emit\ArrayMethod.cs (1)
85public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
38public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
79public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
143public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
46public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
168public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
374public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_ReflectionOnlyCA);
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
76public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
41public override object[] GetCustomAttributes(Type attributeType, bool inherit) => m_field.GetCustomAttributes(attributeType, inherit);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
819public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
67public override object[] GetCustomAttributes(Type attributeType, bool inherit)
Common\CustomMethodInfo.cs (1)
65public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Xaml\XamlMemberTests.cs (1)
2400public override object[] GetCustomAttributes(Type attributeType, bool inherit)
166 references to GetCustomAttributes
BasicTestApp (1)
FormsTest\CustomFieldCssClassProvider.cs (1)
22.GetCustomAttributes(typeof(CustomValidationClassNameAttribute), true)
dotnet-svcutil-lib (14)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (2)
950object[] memberAttributes = member.GetCustomAttributes(typeof(DataMemberAttribute), false).ToArray(); 1015object[] memberAttributes = member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
1580object[] collectionContractAttributes = type.GetTypeInfo().GetCustomAttributes(Globals.TypeOfCollectionDataContractAttribute, false).ToArray(); 2076object[] knownTypeAttributes = type.GetTypeInfo().GetCustomAttributes(Globals.TypeOfKnownTypeAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (2)
285object[] memberAttributes = field.GetCustomAttributes(Globals.TypeOfEnumMemberAttribute, false).ToArray(); 305object[] dataMemberAttributes = field.GetCustomAttributes(Globals.TypeOfDataMemberAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (1)
36object[] attrs = clrType.GetTypeInfo().GetCustomAttributes(Globals.TypeOfXmlSchemaProviderAttribute, false).ToArray();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (1)
248object[] xmlRootAttributes = (UnderlyingType == null) ? null : UnderlyingType.GetTypeInfo().GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false).ToArray();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\CustomAttributeProvider.cs (3)
82return this.Type.GetTypeInfo().GetCustomAttributes(attributeType, inherit).ToArray(); 84return this.MethodInfo.GetCustomAttributes(attributeType, inherit).ToArray(); 86return this.MemberInfo.GetCustomAttributes(attributeType, inherit).ToArray();
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (3)
58object[] attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionAttribute), false)).ToArray(); 76attrs = new List<object>(extensionType.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPrefixAttribute), false)).ToArray(); 111object[] attrs = new List<object>(type.GetTypeInfo().GetCustomAttributes(typeof(XmlFormatExtensionPointAttribute), false)).ToArray();
Microsoft.AspNetCore.Components (2)
Routing\Router.cs (1)
152var routeAttributes = NotFoundPage.GetCustomAttributes(typeof(RouteAttribute), inherit: true);
Routing\RouteTableFactory.cs (1)
104var routeAttributes = componentType.GetCustomAttributes(typeof(RouteAttribute), inherit: false);
Microsoft.AspNetCore.Http.Extensions (2)
src\Shared\PropertyAsParameterInfo.cs (2)
146return _underlyingProperty.GetCustomAttributes(attributeType, inherit); 149var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
src\Shared\PropertyAsParameterInfo.cs (2)
146return _underlyingProperty.GetCustomAttributes(attributeType, inherit); 149var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
158.GetCustomAttributes(typeof(BindingBehaviorAttribute), inherit: true)
Microsoft.AspNetCore.OpenApi (2)
src\Shared\PropertyAsParameterInfo.cs (2)
146return _underlyingProperty.GetCustomAttributes(attributeType, inherit); 149var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.Build (2)
Instance\ReflectableTaskPropertyInfo.cs (2)
49propertyInfo.GetCustomAttributes(typeof(OutputAttribute), true).Any(), 50propertyInfo.GetCustomAttributes(typeof(RequiredAttribute), true).Any())
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskBuilderTestTask.cs (2)
1311infos[i].GetCustomAttributes(typeof(OutputAttribute), false).Length > 0, 1312infos[i].GetCustomAttributes(typeof(RequiredAttribute), false).Length > 0);
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (3)
ObjectFormatterTests.cs (3)
125var attrsA = c.GetField("_A", BindingFlags.Instance | BindingFlags.NonPublic).GetCustomAttributes(typeof(DebuggerBrowsableAttribute), true); 126var attrsWE = c.GetField("_WE", BindingFlags.Instance | BindingFlags.NonPublic).GetCustomAttributes(typeof(DebuggerBrowsableAttribute), true); 127var attrsE = c.GetField("EEvent", BindingFlags.Instance | BindingFlags.NonPublic).GetCustomAttributes(typeof(DebuggerBrowsableAttribute), true);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
280var dllImport = (DllImportAttribute)m.GetCustomAttributes(typeof(DllImportAttribute), inherit: false).Single();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrType.cs (1)
171var attribute = (DebuggerTypeProxyAttribute)type.GetCustomAttributes(typeof(DebuggerTypeProxyAttribute), inherit: false).FirstOrDefault();
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
362var browsable = (DebuggerBrowsableAttribute)member.GetCustomAttributes(typeof(DebuggerBrowsableAttribute), false).FirstOrDefault();
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
853object[] conditions = method.AssociatedMemberInfo.GetCustomAttributes(typeof(ConditionalAttribute), true);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
321var o = field.AssociatedFieldInfo.GetCustomAttributes(typeof(System.Runtime.CompilerServices.DynamicAttribute), false); 335var o = prop.AssociatedPropertyInfo.GetCustomAttributes(typeof(System.Runtime.CompilerServices.DynamicAttribute), false);
Microsoft.Maui (1)
HotReload\HotReloadExtensions.cs (1)
48 var foos = type.GetMethods(flags).Where(x => x.GetCustomAttributes(typeof(OnHotReloadAttribute), true).Length > 0).ToList();
Microsoft.Maui.Controls (1)
Shell\ShellContent.cs (1)
378 var queryPropertyAttributes = type.GetCustomAttributes(typeof(QueryPropertyAttribute), true);
Microsoft.Maui.Controls.Xaml (1)
XamlFilePathAttribute.cs (1)
15 internal static string GetFilePathForObject(object view) => (view?.GetType().GetCustomAttributes(typeof(XamlFilePathAttribute), false).FirstOrDefault() as XamlFilePathAttribute)?.FilePath;
Microsoft.ML.Core (8)
ComponentModel\ComponentCatalog.cs (6)
372var kindAttr = type.GetTypeInfo().GetCustomAttributes(typeof(TlcModule.EntryPointKindAttribute), false).FirstOrDefault() 569var attr = methodInfo.GetCustomAttributes(typeof(TlcModule.EntryPointAttribute), false).FirstOrDefault() as TlcModule.EntryPointAttribute; 574methodInfo.GetCustomAttributes(typeof(ObsoleteAttribute), false).FirstOrDefault() as ObsoleteAttribute); 596var attr = nestedType.GetTypeInfo().GetCustomAttributes(typeof(TlcModule.ComponentAttribute), true).FirstOrDefault() 604var faceAttr = faceType.GetTypeInfo().GetCustomAttributes(typeof(TlcModule.ComponentKindAttribute), false).FirstOrDefault() 939var faceAttr = signatureType.GetTypeInfo().GetCustomAttributes(typeof(TlcModule.ComponentKindAttribute), false).FirstOrDefault()
EntryPoints\EntryPointUtils.cs (2)
58var attr = fieldInfo.GetCustomAttributes(typeof(ArgumentAttribute), false).FirstOrDefault() 84var rangeAttr = fieldInfo.GetCustomAttributes(typeof(TlcModule.RangeAttribute), false).FirstOrDefault()
Microsoft.ML.Data (6)
Data\SchemaDefinition.cs (2)
161.Where(x => x.GetCustomAttributes(typeof(CursorChannelAttribute), false).Any()) 167.Where(x => x.GetCustomAttributes(typeof(CursorChannelAttribute), false).Any());
EntryPoints\InputBuilder.cs (4)
70var attr = (ArgumentAttribute)fieldInfo.GetCustomAttributes(typeof(ArgumentAttribute), false).FirstOrDefault(); 75var rangeAttr = fieldInfo.GetCustomAttributes(typeof(TlcModule.RangeAttribute), false).FirstOrDefault() 79var optional = fieldInfo.GetCustomAttributes(typeof(TlcModule.OptionalInputAttribute), false).Any(); 678var attr = fieldInfo.GetCustomAttributes(typeof(TlcModule.OutputAttribute), false).FirstOrDefault()
Microsoft.ML.EntryPoints (8)
JsonUtils\JsonManifestUtils.cs (8)
160var inputAttr = fieldInfo.GetCustomAttributes(typeof(ArgumentAttribute), false).FirstOrDefault() as ArgumentAttribute; 198var rangeAttr = fieldInfo.GetCustomAttributes(typeof(TlcModule.RangeAttribute), false).FirstOrDefault() as TlcModule.RangeAttribute; 220if (fieldInfo.GetCustomAttributes(typeof(ObsoleteAttribute), false).FirstOrDefault() is ObsoleteAttribute obsAttr) 229if (fieldInfo.GetCustomAttributes(typeof(TlcModule.SweepableLongParamAttribute), false).FirstOrDefault() is TlcModule.SweepableLongParamAttribute slpAttr) 246if (fieldInfo.GetCustomAttributes(typeof(TlcModule.SweepableFloatParamAttribute), false).FirstOrDefault() is TlcModule.SweepableFloatParamAttribute sfpAttr) 263if (fieldInfo.GetCustomAttributes(typeof(TlcModule.SweepableDiscreteParamAttribute), false).FirstOrDefault() is TlcModule.SweepableDiscreteParamAttribute sdpAttr) 292var outputAttr = fieldInfo.GetCustomAttributes(typeof(TlcModule.OutputAttribute), false) 492var attr = fieldInfo.GetCustomAttributes(typeof(ArgumentAttribute), false).FirstOrDefault()
Microsoft.ML.SearchSpace (8)
SearchSpace.cs (8)
200var choiceAttributes = field.GetCustomAttributes(typeof(ChoiceAttribute), false); 201var rangeAttributes = field.GetCustomAttributes(typeof(RangeAttribute), false); 202var booleanChoiceAttributes = field.GetCustomAttributes(typeof(BooleanChoiceAttribute), false); 203var nestOptionAttributes = field.GetCustomAttributes(typeof(NestOptionAttribute), false); 247var choiceAttributes = property.GetCustomAttributes(typeof(ChoiceAttribute), false); 248var rangeAttributes = property.GetCustomAttributes(typeof(RangeAttribute), false); 249var booleanChoiceAttributes = property.GetCustomAttributes(typeof(BooleanChoiceAttribute), false); 250var nestOptionAttributes = property.GetCustomAttributes(typeof(NestOptionAttribute), false);
Microsoft.VisualBasic.Core (11)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
668attributeList = typ.GetCustomAttributes(GetType(DefaultMemberAttribute), False)
Microsoft\VisualBasic\CompilerServices\StructUtils.vb (2)
133attributeList = field_info.GetCustomAttributes(GetType(VBFixedArrayAttribute), False) 184Dim attributeList As Object() = field_info.GetCustomAttributes(GetType(VBFixedStringAttribute), False)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1026Dim attributes As Object() = Enumerable.ToArray(current.GetCustomAttributes(GetType(DefaultMemberAttribute), False))
Microsoft\VisualBasic\CompilerServices\VB6File.vb (6)
122attributeList = field_info.GetCustomAttributes(GetType(VBFixedArrayAttribute), False) 132attributeList = field_info.GetCustomAttributes(GetType(VBFixedStringAttribute), False) 161Dim attributeList As Object() = field_info.GetCustomAttributes(GetType(VBFixedStringAttribute), False) 241Dim attributeList As Object() = field_info.GetCustomAttributes(GetType(VBFixedArrayAttribute), False) 245Dim FixedStringAttributeList As Object() = field_info.GetCustomAttributes(GetType(VBFixedStringAttribute), False) 268Dim attributeList As Object() = field_info.GetCustomAttributes(GetType(VBFixedStringAttribute), False)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
2041attributeList = typ.GetCustomAttributes(GetType(DefaultMemberAttribute), False)
Microsoft.VisualStudio.LanguageServices (2)
Interactive\VsInteractiveWindowProvider.cs (2)
154c => c.GetType().GetCustomAttributes(typeof(ContentTypeAttribute), inherit: true).Any( 159c => c.GetType().GetCustomAttributes(typeof(ContentTypeAttribute), inherit: true).Any(
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
CodeModel\AbstractCodeElementTests`1.vb (1)
455Dim attributes = type.GetCustomAttributes(GetType(ComDefaultInterfaceAttribute), inherit:=False)
MSBuild (3)
OutOfProcTaskAppDomainWrapperBase.cs (1)
364if (value.GetCustomAttributes(typeof(OutputAttribute), true).Length > 0)
ReflectableTaskPropertyInfo.cs (2)
49propertyInfo.GetCustomAttributes(typeof(OutputAttribute), true).Any(), 50propertyInfo.GetCustomAttributes(typeof(RequiredAttribute), true).Any())
MSBuildTaskHost (1)
OutOfProcTaskAppDomainWrapperBase.cs (1)
364if (value.GetCustomAttributes(typeof(OutputAttribute), true).Length > 0)
PresentationFramework (4)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
802object[] contentPropertyAttributes = type.GetCustomAttributes(
MS\Internal\Interop\InternalDispatchObject.cs (1)
63int dispid = ((DispIdAttribute[])method.GetCustomAttributes(typeof(DispIdAttribute), false))[0].Value;
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
377return UnderlyingType.GetCustomAttributes(attributeType, inherit);
System\Windows\Markup\XamlTypeMapper.cs (1)
3751type.GetCustomAttributes(typeof(TrimSurroundingWhitespaceAttribute),true )
System.ComponentModel.Composition.Registration (10)
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
204foreach (Attribute attr in member.GetCustomAttributes(typeof(Attribute), false)) 229bool isConfigured = type.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(type); 248bool isConfigured = type.GetCustomAttributes(typeof(PartCreationPolicyAttribute), false).FirstOrDefault() != null; 262bool isConfigured = type.GetCustomAttributes(typeof(PartMetadataAttribute), false).FirstOrDefault() != null; 279bool isConfigured = type.GetCustomAttributes(typeof(PartMetadataAttribute), false).FirstOrDefault() != null; 299bool isConfigured = type.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(type); 343object[] attributes = ci.GetCustomAttributes(typeof(ImportingConstructorAttribute), false); 445isConfigured = pi.GetCustomAttributes(typeof(ImportAttribute), false).FirstOrDefault() != null || pi.GetCustomAttributes(typeof(ImportManyAttribute), false).FirstOrDefault() != null; 485isConfigured = pi.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(pi);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\EnumConverter.cs (1)
271foreach (Attribute attr in field.GetCustomAttributes(typeof(BrowsableAttribute), false))
System\ComponentModel\TypeDescriptor.cs (1)
370object[] attrs = type.GetCustomAttributes(typeof(TypeDescriptionProviderAttribute), false);
System.Diagnostics.TraceSource (1)
System\Diagnostics\SwitchAttribute.cs (1)
84object[] attribs = member.GetCustomAttributes(typeof(SwitchAttribute), false);
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
338object[] attributes = propInfo.GetCustomAttributes(typeof(AttributeType), false); 350object[] attributes = type.GetCustomAttributes(typeof(AttributeType), false);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
43public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _ctor.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
50public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _field.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
48public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
56public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
197public override object[] GetCustomAttributes(Type attributeType, bool inherit) => _unmodifiedType.GetCustomAttributes(attributeType, inherit);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
169public override object[] GetCustomAttributes(Type attributeType, bool inherit) => typeImpl.GetCustomAttributes(attributeType, inherit);
src\System\Attribute.CoreCLR.cs (5)
23Attribute[] attributes = (Attribute[])element.GetCustomAttributes(type, inherit); 127Attribute[] attributes = (Attribute[])element.GetCustomAttributes(type, inherit); 424object[] obj = type.GetCustomAttributes(typeof(AttributeUsageAttribute), false); 462_ => (Attribute[])element.GetCustomAttributes(attributeType, inherit) 479_ => (Attribute[])element.GetCustomAttributes(typeof(Attribute), inherit)
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ClassDataContract.cs (3)
822object[] memberAttributes = member.GetCustomAttributes(typeof(DataMemberAttribute), false).ToArray(); 885object[] memberAttributes = member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).ToArray(); 933object[] optionalFields = field!.GetCustomAttributes(Globals.TypeOfOptionalFieldAttribute, false);
System\Runtime\Serialization\DataContract.cs (3)
1342object[] dataContractAttributes = type.GetCustomAttributes(Globals.TypeOfDataContractAttribute, false).ToArray(); 1367object[] collectionContractAttributes = type.GetCustomAttributes(Globals.TypeOfCollectionDataContractAttribute, false).ToArray(); 1950object[] knownTypeAttributes = type.GetCustomAttributes(Globals.TypeOfKnownTypeAttribute, false).ToArray();
System\Runtime\Serialization\EnumDataContract.cs (2)
229object[] memberAttributes = field.GetCustomAttributes(Globals.TypeOfEnumMemberAttribute, false).ToArray(); 250object[] dataMemberAttributes = field.GetCustomAttributes(Globals.TypeOfDataMemberAttribute, false).ToArray();
System\Runtime\Serialization\SchemaExporter.cs (1)
610object[] attrs = clrType.GetCustomAttributes(Globals.TypeOfXmlSchemaProviderAttribute, false);
System\Runtime\Serialization\XmlDataContract.cs (1)
154object[]? xmlRootAttributes = UnderlyingType?.GetCustomAttributes(Globals.TypeOfXmlRootAttribute, false).ToArray();
System.Private.Xml (6)
System\Xml\Serialization\Compilation.cs (1)
147object[] attrs = type.GetCustomAttributes(typeof(System.Xml.Serialization.XmlSerializerAssemblyAttribute), false);
System\Xml\Serialization\Compiler.cs (1)
71object[] typeForwardedFromAttribute = type.GetCustomAttributes(typeof(TypeForwardedFromAttribute), false);
System\Xml\Serialization\Types.cs (1)
1254object[] attrs = ctor.GetCustomAttributes(typeof(ObsoleteAttribute), false);
System\Xml\Serialization\XmlAttributes.cs (1)
178object[] attrs = memberInfo.GetCustomAttributes(attrType, false);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
524object[] attrs = type.GetCustomAttributes(typeof(XmlSchemaProviderAttribute), false);
System\Xml\Xslt\XslCompiledTransform.cs (1)
184object[] customAttrs = compiledStylesheet.GetCustomAttributes(typeof(GeneratedCodeAttribute), false);
System.Reflection.Context (8)
System\Reflection\Context\Custom\AttributeUtils.cs (2)
139object[] objects = member.GetCustomAttributes(attributeFilterType, false); 179AttributeUsageAttribute[] usageAttributes = (AttributeUsageAttribute[])attributeFilterType.GetCustomAttributes(typeof(AttributeUsageAttribute), false);
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
93return UnderlyingConstructor.GetCustomAttributes(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
87return UnderlyingEvent.GetCustomAttributes(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
78return UnderlyingField.GetCustomAttributes(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
115return UnderlyingMethod.GetCustomAttributes(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
108return UnderlyingProperty.GetCustomAttributes(attributeType, inherit);
System\Reflection\Context\Delegation\DelegatingType.cs (1)
202return _typeInfo.GetCustomAttributes(attributeType, inherit);
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
48public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return _method.GetCustomAttributes(attributeType, inherit); }
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
78return _innerEventInfo.GetCustomAttributes(attributeType, inherit); 103object[] comEventInterfaces = eventInfo.DeclaringType!.GetCustomAttributes(typeof(ComEventInterfaceAttribute), inherit: false);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (1)
324foreach (Attribute first in attributedType.GetCustomAttributes(typeof(TypeForwardedFromAttribute), false))
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
41public override object[] GetCustomAttributes(Type attributeType, bool inherit) => m_field.GetCustomAttributes(attributeType, inherit);
System.Text.Json (2)
System\ReflectionExtensions.cs (1)
78object[] attributes = memberInfo.GetCustomAttributes(typeof(TAttribute), inherit);
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
208object[] attributes = type.GetCustomAttributes(_compilationMappingAttributeType, inherit: false);
System.Web.Services.Description (3)
System\Web\Services\Configuration\WebServicesSection.cs (3)
24object[] attrs = type.GetCustomAttributes(typeof(XmlFormatExtensionPointAttribute), false); 58object[] attrs = extensionType.GetCustomAttributes(typeof(XmlFormatExtensionAttribute), false); 73attrs = extensionType.GetCustomAttributes(typeof(XmlFormatExtensionPrefixAttribute), false);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionList.cs (1)
71object[] attributes = info.GetCustomAttributes(attributeType, true);
System\ComponentModel\Design\InheritanceService.cs (1)
116object[] fieldAttrs = field.GetCustomAttributes(typeof(AccessedThroughPropertyAttribute), false);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
113object[] attributes = method.GetCustomAttributes(typeof(DesignerSerializationVisibilityAttribute), true);
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
199object[] attrs = t.GetCustomAttributes(typeof(AxHost.ClsidAttribute), false);
System.Windows.Forms.Design.Tests (1)
EnsureEditorsTests.cs (1)
174IEnumerable<EditorAttribute> attributes = method.GetCustomAttributes(typeof(EditorAttribute), false).Cast<EditorAttribute>();
System.Windows.Forms.Tests (5)
System\Windows\Forms\Design\DesignerAttributeTests.cs (5)
45foreach (object attribute in type.GetCustomAttributes(attributeType, false)) 53foreach (object attribute in type.GetCustomAttributes(attributeType, false)) 57foreach (object attribute in property.GetCustomAttributes(attributeType, false)) 65foreach (object attribute in type.GetCustomAttributes(attributeType, false)) 73foreach (object attribute in property.GetCustomAttributes(attributeType, false))
System.Xaml (1)
System\Xaml\Schema\TypeReflector.cs (1)
1088object[] objs = reflectedType.GetCustomAttributes(attrType, true);
System.Xaml.Tests (3)
Common\CustomConstructorInfo.cs (1)
69return DelegatingConstructor.GetCustomAttributes(attributeType, inherit);
Common\CustomMethodInfo.cs (1)
67return DelegatingMethod.GetCustomAttributes(attributeType, inherit);
System\Xaml\XamlMemberTests.cs (1)
2402return DelegatingProperty.GetCustomAttributes(attributeType, inherit);