Implemented interface member:
method
GetCustomAttributes
System.Reflection.ICustomAttributeProvider.GetCustomAttributes(System.Type, System.Boolean)
37 overrides of GetCustomAttributes
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
85public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Private.CoreLib (16)
src\runtime\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\runtime\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\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
547public override object[] GetCustomAttributes(Type attributeType, bool inherit)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
267public override object[] GetCustomAttributes(Type attributeType, bool inherit) { throw new NotSupportedException(); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
200public override object[] GetCustomAttributes(Type attributeType, bool inherit) => _unmodifiedType.GetCustomAttributes(attributeType, inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
176public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
170public override object[] GetCustomAttributes(Type attributeType, bool inherit) => typeImpl.GetCustomAttributes(attributeType, inherit);
System\Reflection\Emit\DynamicMethod.cs (1)
172public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\Reflection\Runtime\General\LegacyCustomAttributeApis.cs (5)
56public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) 79public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) 102public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) 125public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) 194public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit)
System\RuntimeType.NativeAot.cs (1)
806public override object[] GetCustomAttributes(Type attributeType, bool inherit)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
147public override object[] GetCustomAttributes(Type attributeType, bool inherit) { Debug.Assert(false); throw NotImplemented.ByDesign; }
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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
547public 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)
37public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Events\RoEvent.cs (1)
77public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Fields\RoField.cs (1)
142public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
45public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
167public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Types\RoType.cs (1)
390public 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);
148 references to GetCustomAttributes
Aspire.Hosting.Radius.Tests (1)
Secrets\AddRadiusSecretStoreTests.cs (1)
323var attribute = method!.GetCustomAttributes(typeof(ExperimentalAttribute), inherit: false)
Aspire.Hosting.Rust.Tests (1)
CargoMetadataTests.cs (1)
270Assert.Single(readMethod!.GetCustomAttributes(typeof(AsyncStateMachineAttribute), inherit: false))).StateMachineType;
dotnet-format (1)
Analyzers\AnalyzerFormatter.cs (1)
367.GetCustomAttributes(typeof(DiagnosticAnalyzerAttribute), true)
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
282object[] obsoleteAttributes = type.GetCustomAttributes(typeof(ObsoleteAttribute), false);
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 (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
142var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
142var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
158.GetCustomAttributes(typeof(BindingBehaviorAttribute), inherit: true)
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
142var propertyAttributes = _underlyingProperty.GetCustomAttributes(attributeType, inherit);
Microsoft.Build.Framework (2)
ReflectableTaskPropertyInfo.cs (2)
53propertyInfo.GetCustomAttributes(typeof(OutputAttribute), true).Any(), 54propertyInfo.GetCustomAttributes(typeof(RequiredAttribute), true).Any())
Microsoft.CodeAnalysis.Features (2)
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (2)
101var exportAttributes = fixAllState.Provider.GetType().GetTypeInfo().GetCustomAttributes(typeof(ExportCodeFixProviderAttribute), false); 108exportAttributes = fixAllState.Provider.GetType().GetTypeInfo().GetCustomAttributes(typeof(ExportCodeRefactoringProviderAttribute), false);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
361var 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.TestPlatform.CrossPlatEngine (1)
Client\ProxyOperationManager.cs (1)
430var friendlyNameAttribute = TestHostManager.GetType().GetCustomAttributes(
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.TestPlatform.Common (7)
DataCollection\DataCollectorConfig.cs (1)
157return dataCollectorType.GetCustomAttributes(attributeType, true).ToArray();
ExtensionFramework\Utilities\TestDiscovererPluginInformation.cs (2)
93var attributes = testDiscovererType.GetCustomAttributes(typeof(FileExtensionAttribute), inherit: false).ToArray(); 118var attributes = testDiscovererType.GetCustomAttributes(typeof(DefaultExecutorUriAttribute), inherit: false).ToArray();
ExtensionFramework\Utilities\TestExtensionPluginInformation.cs (1)
70object[] attributes = testLoggerType.GetCustomAttributes(typeof(ExtensionUriAttribute), false).ToArray();
ExtensionFramework\Utilities\TestLoggerPluginInformation.cs (1)
56object[] attributes = testLoggerType.GetCustomAttributes(typeof(FriendlyNameAttribute), false).ToArray();
ExtensionFramework\Utilities\TestRunTimePluginInformation.cs (1)
56object[]? attributes = testHostType?.GetCustomAttributes(typeof(FriendlyNameAttribute), false).ToArray();
ExtensionFramework\Utilities\TestSettingsProviderPluginInformation.cs (1)
70object[] attributes = testSettingsProviderType.GetCustomAttributes(typeof(SettingsNameAttribute), false).ToArray();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
XML\XmlPersistence.cs (1)
606var attributes = fieldInfo.GetCustomAttributes(typeof(T), false).ToArray();
MSBuild (1)
OutOfProcTaskAppDomainWrapperBase.cs (1)
427if (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)
270foreach (Attribute attr in field.GetCustomAttributes(typeof(BrowsableAttribute), false))
System\ComponentModel\TypeDescriptor.cs (1)
379object[] attrs = type.GetCustomAttributes(typeof(TypeDescriptionProviderAttribute), false);
System.Diagnostics.TraceSource (1)
System\Diagnostics\SwitchAttribute.cs (1)
84object[] attribs = member.GetCustomAttributes(typeof(SwitchAttribute), false);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (1)
36DirectoryPropertyAttribute[] pAttributeList = (DirectoryPropertyAttribute[])(pInfo.GetCustomAttributes(typeof(DirectoryPropertyAttribute), true));
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
335object[] attributes = propInfo.GetCustomAttributes(typeof(AttributeType), false); 347object[] attributes = type.GetCustomAttributes(typeof(AttributeType), false);
src\runtime\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\runtime\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\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
200public override object[] GetCustomAttributes(Type attributeType, bool inherit) => _unmodifiedType.GetCustomAttributes(attributeType, inherit);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
170public override object[] GetCustomAttributes(Type attributeType, bool inherit) => typeImpl.GetCustomAttributes(attributeType, inherit);
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ClassDataContract.cs (3)
824object[] memberAttributes = member.GetCustomAttributes(typeof(DataMemberAttribute), false).ToArray(); 887object[] memberAttributes = member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).ToArray(); 935object[] optionalFields = field!.GetCustomAttributes(Globals.TypeOfOptionalFieldAttribute, false);
System\Runtime\Serialization\DataContract.cs (3)
1367object[] dataContractAttributes = type.GetCustomAttributes(Globals.TypeOfDataContractAttribute, false).ToArray(); 1392object[] collectionContractAttributes = type.GetCustomAttributes(Globals.TypeOfCollectionDataContractAttribute, false).ToArray(); 1975object[] 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)
607object[] 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)
148object[] 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)
1317object[] attrs = ctor.GetCustomAttributes(typeof(ObsoleteAttribute), false);
System\Xml\Serialization\XmlAttributes.cs (1)
195object[] 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\runtime\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)
79object[] attributes = memberInfo.GetCustomAttributes(typeof(TAttribute), inherit);
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (1)
306object[] attributes = type.GetCustomAttributes(_compilationMappingAttributeType, inherit: true);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerActionList.cs (1)
71object[] attributes = info.GetCustomAttributes(attributeType, true);
System\ComponentModel\Design\InheritanceService.cs (1)
113object[] 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.Xaml (1)
System\Xaml\Schema\TypeReflector.cs (1)
1088object[] objs = reflectedType.GetCustomAttributes(attrType, true);