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