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