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