22 instantiations of CustomAttributeNamedArgument
System.Private.CoreLib (18)
src\System\Reflection\RuntimeCustomAttributeData.cs (18)
327new CustomAttributeNamedArgument(type.GetField("EntryPoint")!, dllImport.EntryPoint), 328new CustomAttributeNamedArgument(type.GetField("CharSet")!, dllImport.CharSet), 329new CustomAttributeNamedArgument(type.GetField("ExactSpelling")!, dllImport.ExactSpelling), 330new CustomAttributeNamedArgument(type.GetField("SetLastError")!, dllImport.SetLastError), 331new CustomAttributeNamedArgument(type.GetField("PreserveSig")!, dllImport.PreserveSig), 332new CustomAttributeNamedArgument(type.GetField("CallingConvention")!, dllImport.CallingConvention), 333new CustomAttributeNamedArgument(type.GetField("BestFitMapping")!, dllImport.BestFitMapping), 334new CustomAttributeNamedArgument(type.GetField("ThrowOnUnmappableChar")!, dllImport.ThrowOnUnmappableChar) 366namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("ArraySubType")!, marshalAs.ArraySubType); 367namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("SizeParamIndex")!, marshalAs.SizeParamIndex); 368namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("SizeConst")!, marshalAs.SizeConst); 369namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("IidParameterIndex")!, marshalAs.IidParameterIndex); 370namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("SafeArraySubType")!, marshalAs.SafeArraySubType); 372namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalType")!, marshalAs.MarshalType); 374namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalTypeRef")!, marshalAs.MarshalTypeRef); 376namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("MarshalCookie")!, marshalAs.MarshalCookie); 378namedArgs[i++] = new CustomAttributeNamedArgument(type.GetField("SafeArrayUserDefinedSubType")!, marshalAs.SafeArrayUserDefinedSubType); 476namedArgs[j++] = new CustomAttributeNamedArgument(
System.Reflection.Context (1)
System\Reflection\Context\CustomReflectionContext.Projector.cs (1)
273return new CustomAttributeNamedArgument(member, typedArgument);
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (2)
23return new CustomAttributeNamedArgument(match, new CustomAttributeTypedArgument(argumentType!, value)); 79return new CustomAttributeNamedArgument(can.MemberInfo, can.TypedValue.CloneForApiReturn());
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
170return new CustomAttributeNamedArgument(member!, ToApiForm(cang.Type, cang.Value));
60 references to CustomAttributeNamedArgument
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\Engine\DkmClrType.cs (1)
352foreach (var namedArg in attributeData.NamedArguments)
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
99foreach (var namedArgument in attribute.NamedArguments)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
424[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CustomAttributeNamedArgument))]
netstandard (1)
netstandard.cs (1)
1391[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CustomAttributeNamedArgument))]
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3395foreach (CustomAttributeNamedArgument namedArgument in data.NamedArguments)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (2)
66IList<CustomAttributeNamedArgument> namedArguments = NamedArguments; 87public virtual IList<CustomAttributeNamedArgument> NamedArguments => null!;
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (7)
8public readonly partial struct CustomAttributeNamedArgument : IEquatable<CustomAttributeNamedArgument> 10public static bool operator ==(CustomAttributeNamedArgument left, CustomAttributeNamedArgument right) => left.Equals(right); 11public static bool operator !=(CustomAttributeNamedArgument left, CustomAttributeNamedArgument right) => !left.Equals(right); 53obj is CustomAttributeNamedArgument other && Equals(other); 58public bool Equals(CustomAttributeNamedArgument other) =>
src\System\Reflection\RuntimeCustomAttributeData.cs (11)
242private IList<CustomAttributeNamedArgument> m_namedArgs = null!; 325m_namedArgs = Array.AsReadOnly(new CustomAttributeNamedArgument[] 343m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 361CustomAttributeNamedArgument[] namedArgs = new CustomAttributeNamedArgument[i]; 392m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 410m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 446public override IList<CustomAttributeNamedArgument> NamedArguments 467CustomAttributeNamedArgument[] namedArgs = new CustomAttributeNamedArgument[cNamedArgs]; 486m_namedArgs = Array.Empty<CustomAttributeNamedArgument>();
src\System\Reflection\RuntimeParameterInfo.cs (1)
406foreach (CustomAttributeNamedArgument namedArgument in attr.NamedArguments)
System.Reflection (1)
System.Reflection.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CustomAttributeNamedArgument))]
System.Reflection.Context (6)
System\Reflection\Context\CustomReflectionContext.Projector.cs (2)
268public override CustomAttributeNamedArgument ProjectNamedArgument(CustomAttributeNamedArgument value)
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (1)
30public override IList<CustomAttributeNamedArgument> NamedArguments
System\Reflection\Context\Projection\ProjectingCustomAttributeData.cs (1)
33public override IList<CustomAttributeNamedArgument> NamedArguments
System\Reflection\Context\Projection\Projector.cs (2)
76public abstract CustomAttributeNamedArgument ProjectNamedArgument(CustomAttributeNamedArgument value);
System.Reflection.MetadataLoadContext (26)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeArguments.cs (2)
14public CustomAttributeArguments(IList<CustomAttributeTypedArgument> fixedArguments, IList<CustomAttributeNamedArgument> namedArguments) 21public IList<CustomAttributeNamedArgument> NamedArguments { get; }
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (11)
15public static CustomAttributeNamedArgument ToCustomAttributeNamedArgument(this Type attributeType, string name, Type? argumentType, object? value) 43public static ReadOnlyCollection<CustomAttributeNamedArgument> CloneForApiReturn(this IList<CustomAttributeNamedArgument> cans) 46CustomAttributeNamedArgument[] clones = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>(); 77private static CustomAttributeNamedArgument CloneForApiReturn(this CustomAttributeNamedArgument can) 113List<CustomAttributeNamedArgument> cans = new List<CustomAttributeNamedArgument>(); 114cans.AddRange(new CustomAttributeNamedArgument[]
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
37public sealed override IList<CustomAttributeNamedArgument> NamedArguments
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (5)
137public static IList<CustomAttributeNamedArgument> ToApiForm(this IList<CustomAttributeNamedArgument<RoType>> cangs, Type attributeType) 140CustomAttributeNamedArgument[] cans = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>(); 152public static CustomAttributeNamedArgument ToApiForm(this CustomAttributeNamedArgument<RoType> cang, Type attributeType)
System\Reflection\TypeLoading\CustomAttributes\RoCustomAttributeData.cs (1)
22public abstract override IList<CustomAttributeNamedArgument> NamedArguments { get; }
System\Reflection\TypeLoading\CustomAttributes\RoPseudoCustomAttributeData.cs (5)
14private volatile IList<CustomAttributeNamedArgument>? _lazyNamedArguments; 25internal RoPseudoCustomAttributeData(ConstructorInfo constructor, IList<CustomAttributeTypedArgument>? fixedArguments = null, IList<CustomAttributeNamedArgument>? namedArguments = null) 29_lazyNamedArguments = namedArguments ?? Array.Empty<CustomAttributeNamedArgument>(); 33public sealed override IList<CustomAttributeNamedArgument> NamedArguments => GetLatchedNamedArguments().CloneForApiReturn(); 36private IList<CustomAttributeNamedArgument> GetLatchedNamedArguments() => _lazyNamedArguments ?? LazilyComputeArguments().NamedArguments;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (1)
40CustomAttributeNamedArgument[] cans =
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
458[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CustomAttributeNamedArgument))]