5 types derived from CustomAttributeData
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
15
internal sealed class RuntimeCustomAttributeData :
CustomAttributeData
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (1)
9
internal class DelegatingCustomAttributeData :
CustomAttributeData
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\TypeExtensions.net.cs (1)
55
internal abstract class LeveledCustomAttributeData :
CustomAttributeData
System.Xaml.Tests (2)
System\Xaml\XamlSchemaContextTests.cs (1)
1039
public class CustomCustomAttributeData :
CustomAttributeData
System\Xaml\XamlTypeTests.cs (1)
5303
public class CustomCustomAttributeData :
CustomAttributeData
331 references to CustomAttributeData
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
1536
CustomAttributeData
[] attributes = type.GetTypeInfo()
1546
var
universalDataContractAttribute = attributes.FirstOrDefault();
Microsoft.AspNetCore.Components.WebAssembly (2)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.7.25358.102\contentFiles\cs\net6.0\MetadataUpdateHandlerInvoker.cs (2)
157
foreach (
var
attr in TryGetCustomAttributesData(assembly))
298
private IList<
CustomAttributeData
> TryGetCustomAttributesData(Assembly assembly)
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
241
IList<
CustomAttributeData
> attributes;
Microsoft.AspNetCore.Hosting (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
241
IList<
CustomAttributeData
> attributes;
Microsoft.AspNetCore.Http.Extensions (3)
src\Shared\PropertyAsParameterInfo.cs (3)
178
public override IList<
CustomAttributeData
> GetCustomAttributesData()
180
var attributes = new List<
CustomAttributeData
>(
181
_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<
CustomAttributeData
>());
Microsoft.AspNetCore.InternalTesting.Tests (2)
TestableAspNetTestAssemblyRunner.cs (2)
56
foreach (
var
attribute in
CustomAttributeData
.GetCustomAttributes(assembly))
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
src\Shared\PropertyAsParameterInfo.cs (3)
178
public override IList<
CustomAttributeData
> GetCustomAttributesData()
180
var attributes = new List<
CustomAttributeData
>(
181
_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<
CustomAttributeData
>());
Microsoft.AspNetCore.OpenApi (3)
src\Shared\PropertyAsParameterInfo.cs (3)
178
public override IList<
CustomAttributeData
> GetCustomAttributesData()
180
var attributes = new List<
CustomAttributeData
>(
181
_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<
CustomAttributeData
>());
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
241
IList<
CustomAttributeData
> attributes;
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
241
IList<
CustomAttributeData
> attributes;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmClrType.cs (3)
239
var
data = ((CustomAttributeDataImpl)attribute).CustomAttributeData;
267
var
attributeData = type.GetCustomAttributesData().FirstOrDefault(data => data.AttributeType == typeof(DebuggerDisplayAttribute));
291
foreach (
var
attributeData in attributesData)
Debugger\MemberInfo\CustomAttributeDataImpl.cs (2)
17
internal readonly System.Reflection.
CustomAttributeData
CustomAttributeData;
19
internal CustomAttributeDataImpl(System.Reflection.
CustomAttributeData
customAttributeData)
Microsoft.CodeAnalysis.Test.Utilities (7)
Platform\Custom\MetadataSignatureHelper.cs (7)
89
private static void AppendCustomAttributeData(
CustomAttributeData
attribute, StringBuilder sb)
111
foreach (
var
attribute in parameter.CustomAttributes)
421
foreach (
var
attribute in method.CustomAttributes)
461
foreach (
var
attribute in constructor.CustomAttributes)
525
foreach (
var
attribute in property.CustomAttributes)
588
foreach (
var
attribute in field.CustomAttributes)
648
foreach (
var
attribute in @event.CustomAttributes)
Microsoft.CodeAnalysis.UnitTests (3)
Collections\DebuggerAttributes.cs (3)
73
CustomAttributeData
? debuggerBrowsableAttribute = info.CustomAttributes
112
CustomAttributeData
cad = attrs[0];
140
var
cad = attrs[0];
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
214
foreach (
CustomAttributeData
attr in member.GetCustomAttributesData())
237
foreach (
CustomAttributeData
attr in member.GetCustomAttributesData())
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1167
foreach (
var
attributeData in property.GetCustomAttributesData())
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
131
foreach (
CustomAttributeData
attributeData in serviceGenericType.GetCustomAttributesData())
Microsoft.Extensions.Logging (3)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (3)
17
IList<
CustomAttributeData
> attributes =
CustomAttributeData
.GetCustomAttributes(providerType);
21
CustomAttributeData
attributeData = attributes[i];
Microsoft.Extensions.Logging.Configuration (3)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (3)
17
IList<
CustomAttributeData
> attributes =
CustomAttributeData
.GetCustomAttributes(providerType);
21
CustomAttributeData
attributeData = attributes[i];
Microsoft.Extensions.Telemetry (3)
Logging\Import\ProviderAliasUtilities.cs (3)
20
IList<
CustomAttributeData
> attributes =
CustomAttributeData
.GetCustomAttributes(providerType);
24
CustomAttributeData
attributeData = attributes[i];
Microsoft.Maui.Controls.Xaml (2)
ApplyPropertiesVisitor.cs (2)
288
static string GetContentPropertyName(IEnumerable<
CustomAttributeData
> attributes)
290
var
contentAttribute =
Microsoft.ML.Core (1)
Data\Repository.cs (1)
426
var
assemblyInternationalVersionAttribute = assembly.CustomAttributes.FirstOrDefault(a =>
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
421
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeData
))]
netstandard (1)
netstandard.cs (1)
1388
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeData
))]
PresentationBuildTasks (29)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (3)
851
IList<
CustomAttributeData
> customAttributes =
CustomAttributeData
.GetCustomAttributes(property);
853
foreach (
CustomAttributeData
attributeData in customAttributes)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (5)
4926
IList<
CustomAttributeData
> attributes =
CustomAttributeData
.GetCustomAttributes(collectionType);
5710
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(baseType);
5711
foreach (
CustomAttributeData
cad in list)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (10)
212
private
CustomAttributeData
[] GetAttributes(Assembly asm, string fullClrName)
214
IList<
CustomAttributeData
> allAttributes =
CustomAttributeData
.GetCustomAttributes(asm);
215
List<
CustomAttributeData
> foundAttributes = new List<
CustomAttributeData
>();
219
CustomAttributeData
data = allAttributes[i];
229
private void GetNamespacesFromDefinitionAttr(
CustomAttributeData
data, out string xmlns, out string clrns)
249
private void GetNamespacesFromCompatAttr(
CustomAttributeData
data, out string oldXmlns, out string newXmlns)
302
CustomAttributeData
[] attributes = GetAttributes(asmList[asmIdx],
371
CustomAttributeData
[] attributes = GetAttributes(asmList[asmIdx],
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (11)
229
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(mi);
241
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(t);
250
private static string GetCustomAttributeData(IList<
CustomAttributeData
> list, Type attrType, out Type typeValue, bool allowTypeAlso, bool allowZeroArgs)
281
CustomAttributeData
cad;
285
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(currentType);
313
private static string GetCustomAttributeData(
CustomAttributeData
cad,
488
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(sourceAssembly);
PresentationFramework (3)
System\Windows\Markup\ParserContext.cs (3)
851
IList<
CustomAttributeData
> customAttributes =
CustomAttributeData
.GetCustomAttributes(property);
853
foreach (
CustomAttributeData
attributeData in customAttributes)
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
214
foreach (
CustomAttributeData
attr in member.GetCustomAttributesData())
237
foreach (
CustomAttributeData
attr in member.GetCustomAttributesData())
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (4)
3012
foreach (
CustomAttributeData
data in
CustomAttributeData
.GetCustomAttributes(member))
3044
foreach (
CustomAttributeData
data in
CustomAttributeData
.GetCustomAttributes(member))
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (2)
113
public virtual IEnumerable<
CustomAttributeData
> CustomAttributes => GetCustomAttributesData();
114
public virtual IList<
CustomAttributeData
> GetCustomAttributesData() { throw NotImplemented.ByDesign; }
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (4)
13
public static IList<
CustomAttributeData
> GetCustomAttributes(MemberInfo target)
20
public static IList<
CustomAttributeData
> GetCustomAttributes(Module target)
27
public static IList<
CustomAttributeData
> GetCustomAttributes(Assembly target)
34
public static IList<
CustomAttributeData
> GetCustomAttributes(ParameterInfo target)
src\libraries\System.Private.CoreLib\src\System\Reflection\MemberInfo.cs (2)
38
public virtual IEnumerable<
CustomAttributeData
> CustomAttributes => GetCustomAttributesData();
39
public virtual IList<
CustomAttributeData
> GetCustomAttributesData() { throw NotImplemented.ByDesign; }
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (2)
33
public virtual IEnumerable<
CustomAttributeData
> CustomAttributes => GetCustomAttributesData();
34
public virtual IList<
CustomAttributeData
> GetCustomAttributesData() { throw NotImplemented.ByDesign; }
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (9)
42
foreach (
CustomAttributeData
attribute in memberInfo.GetCustomAttributesData())
72
IList<
CustomAttributeData
> attributes = parameterInfo.GetCustomAttributesData();
140
private static void CheckNullabilityAttributes(NullabilityInfo nullability, IList<
CustomAttributeData
> attributes)
145
foreach (
CustomAttributeData
attribute in attributes)
263
IList<
CustomAttributeData
> attributes = fieldInfo.GetCustomAttributesData();
303
private static NotAnnotatedStatus PopulateAnnotationInfo(IList<
CustomAttributeData
> customAttributes)
305
foreach (
CustomAttributeData
attribute in customAttributes)
395
private static NullableAttributeStateParser CreateParser(IList<
CustomAttributeData
> customAttributes)
397
foreach (
CustomAttributeData
attribute in customAttributes)
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (2)
41
public virtual IEnumerable<
CustomAttributeData
> CustomAttributes => GetCustomAttributesData();
42
public virtual IList<
CustomAttributeData
> GetCustomAttributesData() { throw NotImplemented.ByDesign; }
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (2)
174
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => throw new NotSupportedException(SR.NotSupported_SignatureType);
185
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
68
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
700
internal static AmbiguousMatchException GetAmbiguousMatchException(
CustomAttributeData
customAttributeData)
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
223
public override IList<
CustomAttributeData
> GetCustomAttributesData() =>
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
499
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeAssembly.cs (1)
349
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
154
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeCustomAttributeData.cs (23)
18
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeType target)
22
IList<
CustomAttributeData
> cad = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
28
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeFieldInfo target)
32
IList<
CustomAttributeData
> cad = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
38
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeMethodInfo target)
42
IList<
CustomAttributeData
> cad = GetCustomAttributes(target.GetRuntimeModule(), target.MetadataToken);
48
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeConstructorInfo target)
55
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeEventInfo target)
62
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimePropertyInfo target)
69
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeModule target)
74
return new List<
CustomAttributeData
>();
79
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeAssembly target)
88
internal static IList<
CustomAttributeData
> GetCustomAttributesInternal(RuntimeParameterInfo target)
93
IList<
CustomAttributeData
> cad = GetCustomAttributes(target.GetRuntimeModule()!, target.MetadataToken);
98
private static ReadOnlyCollection<
CustomAttributeData
> GetCombinedList(IList<
CustomAttributeData
> customAttributes, ref RuntimeType.ListBuilder<Attribute> pseudoAttributes)
102
CustomAttributeData
[] pca = new
CustomAttributeData
[customAttributes.Count + pseudoAttributes.Count];
183
private static IList<
CustomAttributeData
> GetCustomAttributes(RuntimeModule module, int tkTarget)
188
return Array.Empty<
CustomAttributeData
>();
191
CustomAttributeData
[] customAttributes = new
CustomAttributeData
[records.Length];
223
internal static CustomAttributeTypedArgument Filter(IList<
CustomAttributeData
> attrs, Type? caType, int parameter)
src\System\Reflection\RuntimeEventInfo.cs (1)
114
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeFieldInfo.cs (1)
85
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
197
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeModule.cs (1)
378
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimeParameterInfo.cs (6)
300
foreach (
CustomAttributeData
attributeData in
CustomAttributeData
.GetCustomAttributes(this))
374
private static decimal GetRawDecimalConstant(
CustomAttributeData
attr)
395
private static DateTime GetRawDateTimeConstant(
CustomAttributeData
attr)
403
private static object? GetRawConstant(
CustomAttributeData
attr)
489
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\Reflection\RuntimePropertyInfo.cs (1)
162
public override IList<
CustomAttributeData
> GetCustomAttributesData()
src\System\RuntimeType.CoreCLR.cs (3)
1583
CustomAttributeData
? attr = null;
1587
IList<
CustomAttributeData
> attrs =
CustomAttributeData
.GetCustomAttributes(t);
System.Private.Windows.Core.TestUtilities (5)
DebuggerAttributes.cs (5)
60
CustomAttributeData
debuggerBrowsableAttribute = info.CustomAttributes
91
CustomAttributeData
[] attrs =
100
CustomAttributeData
cad = attrs[0];
117
CustomAttributeData
[] attrs =
126
CustomAttributeData
cad = attrs[0];
System.Reflection (1)
System.Reflection.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeData
))]
System.Reflection.Context (35)
System\Reflection\Context\CustomReflectionContext.Projector.cs (2)
199
public override
CustomAttributeData
? ProjectCustomAttributeData(
CustomAttributeData
? value)
System\Reflection\Context\Delegation\DelegatingAssembly.cs (1)
55
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
101
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (2)
11
public DelegatingCustomAttributeData(
CustomAttributeData
attribute)
18
public
CustomAttributeData
UnderlyingAttribute { get; }
System\Reflection\Context\Delegation\DelegatingEventInfo.cs (1)
95
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
86
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
123
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingModule.cs (1)
79
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingParameterInfo.cs (1)
70
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
116
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Delegation\DelegatingType.cs (1)
210
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingAssembly.cs (1)
37
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingConstructorInfo.cs (1)
45
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingCustomAttributeData.cs (1)
15
public ProjectingCustomAttributeData(
CustomAttributeData
attribute, Projector projector)
System\Reflection\Context\Projection\ProjectingEventInfo.cs (1)
70
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingFieldInfo.cs (1)
51
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingMethodInfo.cs (1)
75
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingModule.cs (1)
36
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingParameterInfo.cs (1)
41
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingPropertyInfo.cs (1)
71
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\ProjectingType.cs (1)
76
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Reflection\Context\Projection\Projector.cs (2)
72
public abstract
CustomAttributeData
? ProjectCustomAttributeData(
CustomAttributeData
? value);
System\Reflection\Context\Virtual\VirtualMethodBase.cs (2)
107
public override IList<
CustomAttributeData
> GetCustomAttributesData()
109
return CollectionServices.Empty<
CustomAttributeData
>();
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (2)
166
public override IList<
CustomAttributeData
> GetCustomAttributesData()
168
return CollectionServices.Empty<
CustomAttributeData
>();
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (2)
68
public override IList<
CustomAttributeData
> GetCustomAttributesData()
70
return CollectionServices.Empty<
CustomAttributeData
>();
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertyGetter.cs (2)
50
public override IList<
CustomAttributeData
> GetCustomAttributesData()
52
return CollectionServices.Empty<
CustomAttributeData
>();
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (2)
67
public override IList<
CustomAttributeData
> GetCustomAttributesData()
69
return CollectionServices.Empty<
CustomAttributeData
>();
System.Reflection.MetadataLoadContext (79)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
42
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => AssemblyDefinition.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaManifestModule());
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
60
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
61
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
System\Reflection\TypeLoading\Assemblies\RoStubAssembly.cs (1)
19
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => throw null!;
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (2)
34
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
35
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
System\Reflection\TypeLoading\Constructors\RoDefinitionConstructor.cs (1)
30
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => _decoder.ComputeTrueCustomAttributes();
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (2)
34
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (1)
86
public static
CustomAttributeData
? TryComputeMarshalAsCustomAttributeData(Func<MarshalAsAttribute> marshalAsAttributeComputer, MetadataLoadContext loader)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (3)
20
public static IEnumerable<
CustomAttributeData
> ToTrueCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module)
28
public static
CustomAttributeData
ToCustomAttributeData(this CustomAttributeHandle handle, EcmaModule module) => new EcmaCustomAttributeData(handle, module);
35
public static
CustomAttributeData
? TryFindCustomAttribute(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
36
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => EventDefinition.GetCustomAttributes().ToTrueCustomAttributes(_module);
System\Reflection\TypeLoading\Events\RoEvent.cs (2)
45
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
46
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (1)
35
protected sealed override IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes() => FieldDefinition.GetCustomAttributes().ToTrueCustomAttributes(_module);
System\Reflection\TypeLoading\Fields\RoField.cs (5)
47
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
48
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes
52
foreach (
CustomAttributeData
cad in GetTrueCustomAttributes())
69
CustomAttributeData
? cad = CustomAttributeHelpers.TryComputeMarshalAsCustomAttributeData(ComputeMarshalAsAttribute, Loader);
76
protected abstract IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes();
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (2)
92
CustomAttributeData
cad = handle.ToCustomAttributeData(module);
108
CustomAttributeData
cad = handle.ToCustomAttributeData(module);
System\Reflection\TypeLoading\General\Sentinels.cs (1)
33
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => throw null!;
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
28
public IEnumerable<
CustomAttributeData
> ComputeTrueCustomAttributes() => MethodDefinition.GetCustomAttributes().ToTrueCustomAttributes(_module);
System\Reflection\TypeLoading\MethodBase\IMethodDecoder.cs (1)
26
IEnumerable<
CustomAttributeData
> ComputeTrueCustomAttributes();
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
33
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => _genericMethodDefinition.CustomAttributes;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (3)
50
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes
54
foreach (
CustomAttributeData
cad in _decoder.ComputeTrueCustomAttributes())
64
CustomAttributeData
? dllImportCustomAttribute = ComputeDllImportCustomAttributeDataIfAny();
System\Reflection\TypeLoading\Methods\RoMethod.cs (2)
42
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
43
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (2)
37
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
47
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => ModuleDefinition.GetCustomAttributes().ToTrueCustomAttributes(this);
System\Reflection\TypeLoading\Modules\RoModule.cs (2)
63
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
64
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (2)
44
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (1)
38
protected sealed override IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes() => Parameter.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule());
System\Reflection\TypeLoading\Parameters\RoFatMethodParameter.cs (4)
31
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes
35
foreach (
CustomAttributeData
cad in GetTrueCustomAttributes())
62
CustomAttributeData
? cad = CustomAttributeHelpers.TryComputeMarshalAsCustomAttributeData(ComputeMarshalAsAttribute, Loader);
74
protected abstract IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes();
System\Reflection\TypeLoading\Parameters\RoParameter.cs (2)
32
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
33
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
System\Reflection\TypeLoading\Parameters\RoPropertyIndexParameter.cs (1)
30
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => _backingParameter.CustomAttributes;
System\Reflection\TypeLoading\Parameters\RoThinMethodParameter.cs (2)
25
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
System\Reflection\TypeLoading\Properties\Ecma\EcmaProperty.cs (1)
35
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => PropertyDefinition.GetCustomAttributes().ToTrueCustomAttributes(_module);
System\Reflection\TypeLoading\Properties\RoProperty.cs (2)
46
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
47
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (2)
72
protected sealed override IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes() => TypeDefinition.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule());
75
internal sealed override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (2)
33
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => GenericParameter.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule());
35
internal sealed override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => GenericParameter.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (2)
109
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => _genericTypeDefinition.CustomAttributes;
111
internal sealed override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _genericTypeDefinition.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (4)
61
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes
65
foreach (
CustomAttributeData
cad in GetTrueCustomAttributes())
79
protected abstract IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes();
131
CustomAttributeData
? cad = TryFindCustomAttribute(Utf8Constants.SystemRuntimeInteropServices, Utf8Constants.GuidAttribute);
System\Reflection\TypeLoading\Types\RoExceptionType.cs (2)
37
internal sealed override
CustomAttributeData
TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!;
38
protected sealed override IEnumerable<
CustomAttributeData
> GetTrueCustomAttributes() => throw null!;
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (3)
175
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
177
internal sealed override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoHasElementType.cs (3)
54
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => Array.Empty<
CustomAttributeData
>();
56
internal sealed override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
161
public override IEnumerable<
CustomAttributeData
> CustomAttributes => _unmodifiedType.CustomAttributes;
163
internal override
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _unmodifiedType.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoStubType.cs (2)
48
public sealed override IEnumerable<
CustomAttributeData
> CustomAttributes => throw null!;
50
internal sealed override
CustomAttributeData
TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!;
System\Reflection\TypeLoading\Types\RoType.cs (4)
151
public sealed override IList<
CustomAttributeData
> GetCustomAttributesData() => CustomAttributes.ToReadOnlyCollection();
152
public abstract override IEnumerable<
CustomAttributeData
> CustomAttributes { get; }
156
internal abstract
CustomAttributeData
? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name);
302
CustomAttributeData
? attribute = type.TryFindCustomAttribute(Utf8Constants.SystemReflection, Utf8Constants.DefaultMemberAttribute);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
452
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeData
))]
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
86
public override IList<
CustomAttributeData
> GetCustomAttributesData() => _innerEventInfo.GetCustomAttributesData();
System.Xaml (32)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (7)
229
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(mi);
250
private static string GetCustomAttributeData(IList<
CustomAttributeData
> list, Type attrType, out Type typeValue, bool allowTypeAlso, bool allowZeroArgs)
281
CustomAttributeData
cad;
285
IList<
CustomAttributeData
> list =
CustomAttributeData
.GetCustomAttributes(currentType);
313
private static string GetCustomAttributeData(
CustomAttributeData
cad,
System\Xaml\MS\Impl\XmlNsInfo.cs (6)
114
private IList<
CustomAttributeData
> _attributeData;
166
foreach (
var
cad in _attributeData)
257
foreach (
var
cad in _attributeData)
316
foreach (
var
cad in _attributeData)
369
foreach (
var
cad in _attributeData)
419
foreach (
var
cad in _attributeData)
System\Xaml\Schema\Reflector.cs (19)
23
protected IList<
CustomAttributeData
> _attributeData;
51
CustomAttributeData
cad = GetAttribute(attributeType);
124
CustomAttributeData
cad = GetAttribute(attributeType);
201
CustomAttributeData
cad = GetAttribute(attributeType);
248
CustomAttributeData
cad = GetAttribute(attributeType);
283
CustomAttributeData
cad = GetAttribute(attributeType);
336
List<
CustomAttributeData
> cads = new List<
CustomAttributeData
>();
344
foreach (
CustomAttributeData
cad in cads)
424
IList<
CustomAttributeData
> attrDataList = new List<
CustomAttributeData
>();
428
foreach (
CustomAttributeData
attributeData in attrDataList)
441
private Type ExtractType(
CustomAttributeData
cad)
457
private Type[] ExtractTypes(
CustomAttributeData
cad, int count)
492
private T Extract<T>(
CustomAttributeData
cad)
512
_attributeData =
CustomAttributeData
.GetCustomAttributes(Member);
516
private
CustomAttributeData
GetAttribute(Type attributeType)
530
private void GetAttributes(Type attributeType, IList<
CustomAttributeData
> cads)
542
protected void ThrowInvalidMetadata(
CustomAttributeData
cad, int expectedCount, Type expectedType)
System.Xaml.Tests (21)
Common\CustomAssembly.cs (2)
28
public Optional<IList<
CustomAttributeData
>> GetCustomAttributesDataResult { get; set; }
29
public override IList<
CustomAttributeData
> GetCustomAttributesData()
Common\CustomType.cs (2)
19
public Optional<IList<
CustomAttributeData
>> GetCustomAttributesDataResult { get; set; }
20
public override IList<
CustomAttributeData
> GetCustomAttributesData()
System\Xaml\XamlSchemaContextTests.cs (2)
210
GetCustomAttributesDataResult = new
CustomAttributeData
[]
320
GetCustomAttributesDataResult = new
CustomAttributeData
[]
System\Xaml\XamlTypeTests.cs (15)
269
GetCustomAttributesDataResult = new
CustomAttributeData
[]
348
GetCustomAttributesDataResult = new
CustomAttributeData
[]
691
GetCustomAttributesDataResult = new
CustomAttributeData
[]
1504
GetCustomAttributesDataResult = new
CustomAttributeData
[]
2099
GetCustomAttributesDataResult = new
CustomAttributeData
[]
2283
GetCustomAttributesDataResult = new
CustomAttributeData
[]
2462
GetCustomAttributesDataResult = new
CustomAttributeData
[]
3863
GetCustomAttributesDataResult = new
CustomAttributeData
[]
4062
GetCustomAttributesDataResult = new
CustomAttributeData
[]
4361
GetCustomAttributesDataResult = new
CustomAttributeData
[]
4602
GetCustomAttributesDataResult = new
CustomAttributeData
[]
4769
GetCustomAttributesDataResult = new
CustomAttributeData
[]
5205
public override IList<
CustomAttributeData
> GetCustomAttributesData()
5207
IList<
CustomAttributeData
> baseData = typeImpl.GetCustomAttributesData();
5228
public override IList<
CustomAttributeData
> GetCustomAttributesData()