15 instantiations of CustomAttributeTypedArgument
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
28
_value = new
CustomAttributeTypedArgument
(type, value);
src\System\Reflection\RuntimeCustomAttributeData.cs (6)
322
new
CustomAttributeTypedArgument
(dllImport.Value),
341
new
CustomAttributeTypedArgument
(fieldOffset.Value)
351
new
CustomAttributeTypedArgument
(marshalAs.Value),
389
CustomAttributeTypedArgument[] typedArgs = [new
CustomAttributeTypedArgument
(typeof(Type), forwardedTo.Destination)];
431
typedCtorArgs[i] = new
CustomAttributeTypedArgument
(m_scope, encodedArg);
601
arrayValue[i] = new
CustomAttributeTypedArgument
(scope, encodedArg.ArrayValue[i]);
System.Reflection.Context (1)
System\Reflection\Context\CustomReflectionContext.Projector.cs (1)
265
return new
CustomAttributeTypedArgument
(argumentType, value.Value);
System.Reflection.MetadataLoadContext (7)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (3)
23
return new CustomAttributeNamedArgument(match, new
CustomAttributeTypedArgument
(argumentType!, value));
71
return new
CustomAttributeTypedArgument
(type, Array.AsReadOnly(cads));
112
CustomAttributeTypedArgument[] cats = { new
CustomAttributeTypedArgument
(ct[CoreType.UnmanagedType]!, (int)(ma.Value)) };
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (2)
127
return new
CustomAttributeTypedArgument
(type, value);
130
return new
CustomAttributeTypedArgument
(type, catgs.ToApiForm());
System\Reflection\TypeLoading\Fields\RoField.cs (1)
62
CustomAttributeTypedArgument[] cats = { new
CustomAttributeTypedArgument
(int32Type, offset) };
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (1)
39
CustomAttributeTypedArgument[] cats = { new
CustomAttributeTypedArgument
(ct[CoreType.String]!, dia.Value) };
95 references to CustomAttributeTypedArgument
Microsoft.AspNetCore.Components.WebAssembly (1)
HotReload\HotReloadAgent.cs (1)
77
IList<
CustomAttributeTypedArgument
> ctorArgs = attr.ConstructorArguments;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrType.cs (1)
294
foreach (
var
typedArg in attributeData.ConstructorArguments)
Debugger\MemberInfo\CustomAttributeDataImpl.cs (2)
41
private static CustomAttributeTypedArgument MakeTypedArgument(System.Reflection.
CustomAttributeTypedArgument
a)
49
var reflectionValue = (ReadOnlyCollection<System.Reflection.
CustomAttributeTypedArgument
>)a.Value;
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
94
foreach (
var
positionalArgument in attribute.ConstructorArguments)
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
221
foreach (
CustomAttributeTypedArgument
ctorArg in attr.ConstructorArguments)
244
foreach (
CustomAttributeTypedArgument
ctorArg in attr.ConstructorArguments)
Microsoft.Extensions.Logging (1)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
25
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
25
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Telemetry (1)
Logging\Import\ProviderAliasUtilities.cs (1)
28
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
425
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeTypedArgument
))]
netstandard (1)
netstandard.cs (1)
1392
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeTypedArgument
))]
PresentationBuildTasks (6)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (4)
246
IList<
CustomAttributeTypedArgument
> constructorArguments = data.ConstructorArguments;
249
CustomAttributeTypedArgument
tca = constructorArguments[i];
266
IList<
CustomAttributeTypedArgument
> constructorArguments = data.ConstructorArguments;
269
CustomAttributeTypedArgument
tca = constructorArguments[i];
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
336
IList<
CustomAttributeTypedArgument
> constructorArguments = cad.ConstructorArguments;
339
CustomAttributeTypedArgument
tca = constructorArguments[0];
Shared (1)
JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (1)
650
case ReadOnlyCollection<
CustomAttributeTypedArgument
> args
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (2)
57
IList<
CustomAttributeTypedArgument
> constructorArguments = ConstructorArguments;
88
public virtual IList<
CustomAttributeTypedArgument
> ConstructorArguments => null!;
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (3)
14
private readonly
CustomAttributeTypedArgument
_value;
31
public CustomAttributeNamedArgument(MemberInfo memberInfo,
CustomAttributeTypedArgument
typedArgument)
68
public
CustomAttributeTypedArgument
TypedValue => _value;
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (9)
10
public readonly partial struct CustomAttributeTypedArgument : IEquatable<
CustomAttributeTypedArgument
>
12
public static bool operator ==(
CustomAttributeTypedArgument
left,
CustomAttributeTypedArgument
right) => left.Equals(right);
13
public static bool operator !=(
CustomAttributeTypedArgument
left,
CustomAttributeTypedArgument
right) => !left.Equals(right);
59
IList<
CustomAttributeTypedArgument
> array = (IList<
CustomAttributeTypedArgument
>)Value!;
89
public override bool Equals([NotNullWhen(true)] object? obj) => obj is
CustomAttributeTypedArgument
cata && Equals(cata);
94
public bool Equals(
CustomAttributeTypedArgument
other) => _value == other._value && _argumentType == other._argumentType;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
668
case ReadOnlyCollection<
CustomAttributeTypedArgument
> args
src\System\Reflection\RuntimeCustomAttributeData.cs (13)
223
internal static
CustomAttributeTypedArgument
Filter(IList<CustomAttributeData> attrs, Type? caType, int parameter)
241
private IList<
CustomAttributeTypedArgument
> m_typedCtorArgs = null!;
320
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[]
340
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[] {
349
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[]
389
CustomAttributeTypedArgument
[] typedArgs = [new CustomAttributeTypedArgument(typeof(Type), forwardedTo.Destination)];
409
m_typedCtorArgs = Array.Empty<
CustomAttributeTypedArgument
>();
417
public override IList<
CustomAttributeTypedArgument
> ConstructorArguments
425
CustomAttributeTypedArgument
[] typedCtorArgs = new
CustomAttributeTypedArgument
[m_ctorParams.Length];
438
m_typedCtorArgs = Array.Empty<
CustomAttributeTypedArgument
>();
599
CustomAttributeTypedArgument
[] arrayValue = new
CustomAttributeTypedArgument
[encodedArg.ArrayValue.Length];
src\System\Reflection\RuntimeParameterInfo.cs (2)
377
IList<
CustomAttributeTypedArgument
> args = attr.ConstructorArguments;
387
static int GetConstructorArgument(IList<
CustomAttributeTypedArgument
> args, int index)
System.Reflection (1)
System.Reflection.cs (1)
12
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeTypedArgument
))]
System.Reflection.Context (7)
System\Reflection\Context\CustomReflectionContext.Projector.cs (3)
261
public override
CustomAttributeTypedArgument
ProjectTypedArgument(
CustomAttributeTypedArgument
value)
271
CustomAttributeTypedArgument
typedArgument = ProjectTypedArgument(value.TypedValue);
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (1)
25
public override IList<
CustomAttributeTypedArgument
> ConstructorArguments
System\Reflection\Context\Projection\ProjectingCustomAttributeData.cs (1)
28
public override IList<
CustomAttributeTypedArgument
> ConstructorArguments
System\Reflection\Context\Projection\Projector.cs (2)
75
public abstract
CustomAttributeTypedArgument
ProjectTypedArgument(
CustomAttributeTypedArgument
value);
System.Reflection.MetadataLoadContext (34)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeArguments.cs (2)
14
public CustomAttributeArguments(IList<
CustomAttributeTypedArgument
> fixedArguments, IList<CustomAttributeNamedArgument> namedArguments)
20
public IList<
CustomAttributeTypedArgument
> FixedArguments { get; }
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (12)
29
public static ReadOnlyCollection<
CustomAttributeTypedArgument
> CloneForApiReturn(this IList<
CustomAttributeTypedArgument
> cats)
32
CustomAttributeTypedArgument
[] clones = count != 0 ? new
CustomAttributeTypedArgument
[count] : Array.Empty<
CustomAttributeTypedArgument
>();
57
private static
CustomAttributeTypedArgument
CloneForApiReturn(this
CustomAttributeTypedArgument
cat)
62
if (!(value is IList<
CustomAttributeTypedArgument
> cats))
66
CustomAttributeTypedArgument
[] cads = count != 0 ? new
CustomAttributeTypedArgument
[count] : Array.Empty<
CustomAttributeTypedArgument
>();
112
CustomAttributeTypedArgument
[] cats = { new CustomAttributeTypedArgument(ct[CoreType.UnmanagedType]!, (int)(ma.Value)) };
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
26
public sealed override IList<
CustomAttributeTypedArgument
> ConstructorArguments
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (6)
106
public static IList<
CustomAttributeTypedArgument
> ToApiForm(this IList<CustomAttributeTypedArgument<RoType>> catgs)
109
CustomAttributeTypedArgument
[] cats = count != 0 ? new
CustomAttributeTypedArgument
[count] : Array.Empty<
CustomAttributeTypedArgument
>();
121
public static
CustomAttributeTypedArgument
ToApiForm(this CustomAttributeTypedArgument<RoType> catg) => ToApiForm(catg.Type, catg.Value);
123
private static
CustomAttributeTypedArgument
ToApiForm(Type type, object? value)
System\Reflection\TypeLoading\CustomAttributes\RoCustomAttributeData.cs (1)
23
public abstract override IList<
CustomAttributeTypedArgument
> ConstructorArguments { get; }
System\Reflection\TypeLoading\CustomAttributes\RoPseudoCustomAttributeData.cs (5)
13
private volatile IList<
CustomAttributeTypedArgument
>? _lazyFixedArguments;
25
internal RoPseudoCustomAttributeData(ConstructorInfo constructor, IList<
CustomAttributeTypedArgument
>? fixedArguments = null, IList<CustomAttributeNamedArgument>? namedArguments = null)
28
_lazyFixedArguments = fixedArguments ?? Array.Empty<
CustomAttributeTypedArgument
>();
32
public sealed override IList<
CustomAttributeTypedArgument
> ConstructorArguments => GetLatchedFixedArguments().CloneForApiReturn();
35
private IList<
CustomAttributeTypedArgument
> GetLatchedFixedArguments() => _lazyFixedArguments ?? LazilyComputeArguments().FixedArguments;
System\Reflection\TypeLoading\Fields\RoField.cs (1)
62
CustomAttributeTypedArgument
[] cats = { new CustomAttributeTypedArgument(int32Type, offset) };
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (2)
93
IList<
CustomAttributeTypedArgument
> cats = cad.ConstructorArguments;
109
IList<
CustomAttributeTypedArgument
> cats = cad.ConstructorArguments;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (1)
39
CustomAttributeTypedArgument
[] cats = { new CustomAttributeTypedArgument(ct[CoreType.String]!, dia.Value) };
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (2)
135
IList<
CustomAttributeTypedArgument
> ctas = cad.ConstructorArguments;
138
CustomAttributeTypedArgument
cta = ctas[0];
System\Reflection\TypeLoading\Types\RoType.cs (1)
305
IList<
CustomAttributeTypedArgument
> fixedArguments = attribute.ConstructorArguments;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
453
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeTypedArgument
))]
System.Xaml (3)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
336
IList<
CustomAttributeTypedArgument
> constructorArguments = cad.ConstructorArguments;
339
CustomAttributeTypedArgument
tca = constructorArguments[0];
System\Xaml\Schema\Reflector.cs (1)
444
private Type ExtractType(
CustomAttributeTypedArgument
arg)