9 implementations of ICustomAttributeProvider
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
14internal class WpfKnownType : WpfXamlType, ICustomAttributeProvider
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
17public abstract partial class Assembly : ICustomAttributeProvider, ISerializable
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EmptyCAHolder.cs (1)
6internal sealed class EmptyCAHolder : ICustomAttributeProvider
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (1)
9public abstract partial class MemberInfo : ICustomAttributeProvider
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
12public abstract partial class Module : ICustomAttributeProvider, ISerializable
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (1)
10public class ParameterInfo : ICustomAttributeProvider
src\System\Reflection\Assembly.CoreCLR.cs (1)
14public abstract partial class Assembly : ICustomAttributeProvider, ISerializable
System.Xaml.Tests (2)
System\Xaml\XamlMemberTests.cs (1)
2335private class CustomAttributeProvider : ICustomAttributeProvider
System\Xaml\XamlTypeTests.cs (1)
5259private class CustomAttributeProvider : ICustomAttributeProvider
116 references to ICustomAttributeProvider
Microsoft.AspNetCore.Mvc.Core (3)
ApiExplorer\ApiConventionMatcher.cs (3)
54internal static ApiConventionNameMatchBehavior GetNameMatchBehavior(ICustomAttributeProvider attributeProvider) 60internal static ApiConventionTypeMatchBehavior GetTypeMatchBehavior(ICustomAttributeProvider attributeProvider) 66private static TAttribute? GetCustomAttribute<TAttribute>(ICustomAttributeProvider attributeProvider)
Microsoft.AspNetCore.Mvc.Core.Test (12)
ApiExplorer\ApiConventionMatcherTest.cs (12)
434var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes); 449var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes); 469var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes); 484var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes); 499var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes); 519var provider = Mock.Of<ICustomAttributeProvider>(p => p.GetCustomAttributes(false) == attributes);
Microsoft.Extensions.AI.Abstractions (5)
Utilities\AIJsonSchemaCreateContext.cs (5)
57/// Gets the <see cref="ICustomAttributeProvider"/> corresponding to the property or field being processed. 59public ICustomAttributeProvider? PropertyAttributeProvider => 63/// Gets the <see cref="System.Reflection.ICustomAttributeProvider"/> of the 66public ICustomAttributeProvider? ParameterAttributeProvider => 90TAttribute? GetCustomAttr(ICustomAttributeProvider? provider) =>
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
460[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.ICustomAttributeProvider))]
netstandard (1)
netstandard.cs (1)
1428[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.ICustomAttributeProvider))]
PresentationFramework (4)
System\Windows\Markup\Baml2006\WpfKnownType.cs (4)
350protected override ICustomAttributeProvider LookupCustomAttributeProvider() 357object[] ICustomAttributeProvider.GetCustomAttributes(bool inherit) 362object[] ICustomAttributeProvider.GetCustomAttributes(Type attributeType, bool inherit) 415bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit)
System.ComponentModel.Composition (10)
Microsoft\Internal\AttributeServices.cs (6)
11public static T[] GetAttributes<T>(this ICustomAttributeProvider attributeProvider) where T : class 16public static T[] GetAttributes<T>(this ICustomAttributeProvider attributeProvider, bool inherit) where T : class 21public static T? GetFirstAttribute<T>(this ICustomAttributeProvider attributeProvider) where T : class 26public static T? GetFirstAttribute<T>(this ICustomAttributeProvider attributeProvider, bool inherit) where T : class 31public static bool IsAttributeDefined<T>(this ICustomAttributeProvider attributeProvider) where T : class 36public static bool IsAttributeDefined<T>(this ICustomAttributeProvider attributeProvider, bool inherit) where T : class
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (1)
149private static IAttributedImport GetAttributedImport(ReflectionItem item, ICustomAttributeProvider attributeProvider)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (3)
407private static bool IsExport(ICustomAttributeProvider attributeProvider) 412private static bool IsInheritedExport(ICustomAttributeProvider attributedProvider) 495private static bool IsImport(ICustomAttributeProvider attributeProvider)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
379public override ICustomAttributeProvider ReturnTypeCustomAttributes => new EmptyCAHolder();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EmptyCAHolder.cs (3)
10object[] ICustomAttributeProvider.GetCustomAttributes(Type attributeType, bool inherit) => Array.Empty<object>(); 12object[] ICustomAttributeProvider.GetCustomAttributes(bool inherit) => Array.Empty<object>(); 14bool ICustomAttributeProvider.IsDefined(Type attributeType, bool inherit) => false;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
102public override ICustomAttributeProvider ReturnTypeCustomAttributes => throw new NotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
122public override ICustomAttributeProvider ReturnTypeCustomAttributes => throw new NotSupportedException();
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.cs (1)
27public abstract ICustomAttributeProvider ReturnTypeCustomAttributes { get; }
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
419public override ICustomAttributeProvider ReturnTypeCustomAttributes => new EmptyCAHolder();
src\System\Reflection\Emit\SymbolMethod.cs (1)
103public override ICustomAttributeProvider ReturnTypeCustomAttributes => new EmptyCAHolder();
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
319public override ICustomAttributeProvider ReturnTypeCustomAttributes => ReturnParameter;
System.Private.Xml (6)
System\Xml\Serialization\SoapAttributes.cs (1)
30public SoapAttributes(ICustomAttributeProvider provider)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
48public void IncludeTypes(ICustomAttributeProvider provider) 55private void IncludeTypes(ICustomAttributeProvider provider, RecursionLimiter limiter)
System\Xml\Serialization\XmlAttributes.cs (1)
77public XmlAttributes(ICustomAttributeProvider provider)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
88public void IncludeTypes(ICustomAttributeProvider provider) 95private void IncludeTypes(ICustomAttributeProvider provider, RecursionLimiter limiter)
System.Reflection (1)
System.Reflection.cs (1)
15[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.ICustomAttributeProvider))]
System.Reflection.Context (5)
System\Reflection\Context\Custom\AttributeUtils.cs (1)
131public static bool IsDefined(ICustomAttributeProvider provider, Type attributeType, bool inherit)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
96public override ICustomAttributeProvider ReturnTypeCustomAttributes
System\Reflection\Context\Projection\ProjectingMethodInfo.cs (2)
44public override ICustomAttributeProvider ReturnTypeCustomAttributes 50ICustomAttributeProvider provider = base.ReturnTypeCustomAttributes;
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
61public sealed override ICustomAttributeProvider ReturnTypeCustomAttributes
System.Reflection.Emit (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
102public override ICustomAttributeProvider ReturnTypeCustomAttributes => throw new NotSupportedException();
System\Reflection\Emit\ArrayMethod.cs (1)
74public override ICustomAttributeProvider ReturnTypeCustomAttributes => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System\Reflection\Emit\MethodBuilderImpl.cs (1)
266public override ICustomAttributeProvider ReturnTypeCustomAttributes { get => throw new NotImplementedException(); }
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
95public sealed override ICustomAttributeProvider ReturnTypeCustomAttributes => ReturnParameter;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
466[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.ICustomAttributeProvider))]
System.ServiceModel.Primitives (20)
System\ServiceModel\Description\MessagePartDescription.cs (2)
18private ICustomAttributeProvider _additionalAttributesProvider; 101internal ICustomAttributeProvider AdditionalAttributesProvider
System\ServiceModel\Description\ServiceReflector.cs (7)
483static internal object[] GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType) 488static internal object[] GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, bool inherit) 548static internal T GetFirstAttribute<T>(ICustomAttributeProvider attrProvider) 563static internal T GetSingleAttribute<T>(ICustomAttributeProvider attrProvider) 581static internal T GetRequiredSingleAttribute<T>(ICustomAttributeProvider attrProvider) 591static internal T GetSingleAttribute<T>(ICustomAttributeProvider attrProvider, Type[] attrTypeGroup) 613static internal T GetRequiredSingleAttribute<T>(ICustomAttributeProvider attrProvider, Type[] attrTypeGroup)
System\ServiceModel\Description\TypeLoader.cs (9)
33private static Type[] s_knownTypesMethodParamType = new Type[] { typeof(ICustomAttributeProvider) }; 360private IEnumerable<Type> GetKnownTypes(object[] knownTypeAttributes, ICustomAttributeProvider provider) 820internal static Attribute GetFormattingAttribute(ICustomAttributeProvider attrProvider, Attribute defaultFormatAttribute) 1230ICustomAttributeProvider returnAttrProvider, 1282private static MessagePartDescription CreateParameterPartDescription(XmlName defaultName, string defaultNS, int index, ICustomAttributeProvider attrProvider, Type type) 1296ICustomAttributeProvider returnAttrProvider, 1459ICustomAttributeProvider attrProvider, 1495ICustomAttributeProvider attrProvider, 1547private MessagePropertyDescription CreateMessagePropertyDescription(ICustomAttributeProvider attrProvider,
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
1047ICustomAttributeProvider additionalAttributesProvider = null; 1058static internal XmlReflectionMember GetXmlReflectionMember(XmlName memberName, XmlName elementName, string ns, Type type, ICustomAttributeProvider additionalAttributesProvider, bool isMultiple, bool isEncoded, bool isWrapped)
System.Text.Json (16)
System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs (1)
44public Func<ICustomAttributeProvider>? ConstructorAttributeProviderFactory { get; init; }
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (3)
93public ICustomAttributeProvider? AttributeProvider 99ICustomAttributeProvider? parameterInfo = _attributeProvider; 113private ICustomAttributeProvider? _attributeProvider;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (5)
164public ICustomAttributeProvider? AttributeProvider 168Func<ICustomAttributeProvider>? attributeProviderFactory = Volatile.Read(ref AttributeProviderFactory); 169ICustomAttributeProvider? attributeProvider = _attributeProvider; 190internal Func<ICustomAttributeProvider>? AttributeProviderFactory; 191private ICustomAttributeProvider? _attributeProvider;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoValuesOfT.cs (2)
87/// Provides a <see cref="ICustomAttributeProvider"/> factory that maps to <see cref="JsonPropertyInfo.AttributeProvider"/>. 89public Func<ICustomAttributeProvider>? AttributeProviderFactory { get; init; }
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (5)
643public ICustomAttributeProvider? ConstructorAttributeProvider 647Func<ICustomAttributeProvider>? ctorAttrProviderFactory = Volatile.Read(ref ConstructorAttributeProviderFactory); 648ICustomAttributeProvider? ctorAttrProvider = _constructorAttributeProvider; 669internal Func<ICustomAttributeProvider>? ConstructorAttributeProviderFactory; 670private ICustomAttributeProvider? _constructorAttributeProvider;
System.Xaml (8)
System\Xaml\Schema\Reflector.cs (3)
22protected NullableReference<ICustomAttributeProvider> _attributeProvider; 25internal ICustomAttributeProvider CustomAttributeProvider 31internal void SetCustomAttributeProviderVolatile(ICustomAttributeProvider value)
System\Xaml\Schema\XamlDirective.cs (1)
123protected sealed override ICustomAttributeProvider LookupCustomAttributeProvider()
System\Xaml\XamlMember.cs (3)
541protected virtual ICustomAttributeProvider LookupCustomAttributeProvider() 877ICustomAttributeProvider attrProvider = LookupCustomAttributeProvider(); 918ICustomAttributeProvider attributeProvider = _reflector.CustomAttributeProvider ?? UnderlyingMember;
System\Xaml\XamlType.cs (1)
852protected virtual ICustomAttributeProvider LookupCustomAttributeProvider()
System.Xaml.Tests (9)
Common\CustomMethodInfo.cs (2)
52public Optional<ICustomAttributeProvider> ReturnTypeCustomAttributesResult { get; set; } 53public override ICustomAttributeProvider ReturnTypeCustomAttributes => ReturnTypeCustomAttributesResult.Or(DelegatingMethod.ReturnTypeCustomAttributes);
Common\CustomXamlType.cs (2)
69public Optional<ICustomAttributeProvider> LookupCustomAttributeProviderResult { get; set; } 71protected override ICustomAttributeProvider LookupCustomAttributeProvider()
Common\SubXamlType.cs (1)
41public ICustomAttributeProvider LookupCustomAttributeProviderEntry() => LookupCustomAttributeProvider();
System\Xaml\XamlDirectiveTests.cs (1)
291public ICustomAttributeProvider LookupCustomAttributeProviderEntry() => LookupCustomAttributeProvider();
System\Xaml\XamlMemberTests.Mocks.cs (3)
36public ICustomAttributeProvider LookupCustomAttributeProviderEntry() => LookupCustomAttributeProvider(); 95public Optional<ICustomAttributeProvider?> LookupCustomAttributeProviderResult { get; set; } 96protected override ICustomAttributeProvider LookupCustomAttributeProvider()