16 instantiations of CustomAttributeTypedArgument
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
28
_value = new
CustomAttributeTypedArgument
(type, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (7)
328
new
CustomAttributeTypedArgument
(dllImport.Value),
347
new
CustomAttributeTypedArgument
(fieldOffset.Value)
357
new
CustomAttributeTypedArgument
(marshalAs.Value),
395
CustomAttributeTypedArgument[] typedArgs = [new
CustomAttributeTypedArgument
(typeof(Type), forwardedTo.Destination)];
444
typedCtorArgs[i] = new
CustomAttributeTypedArgument
(m_scope, encodedArg);
491
new
CustomAttributeTypedArgument
(m_scope, p.EncodedArgument));
617
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)
61
CustomAttributeTypedArgument[] cats = { new
CustomAttributeTypedArgument
(int32Type, offset) };
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (1)
39
CustomAttributeTypedArgument[] cats = { new
CustomAttributeTypedArgument
(ct[CoreType.String]!, dia.Value) };
94 references to CustomAttributeTypedArgument
Aspire.Hosting.RemoteHost (1)
Ats\CapabilityDispatcher.cs (1)
895
var types = unionAttribute.ConstructorArguments[0].Value as IReadOnlyCollection<
CustomAttributeTypedArgument
>;
Aspire.TypeSystem (3)
AttributeDataReader.cs (3)
183
var
arg = data.ConstructorArguments[0];
260
data.ConstructorArguments[0].Value is IReadOnlyCollection<
CustomAttributeTypedArgument
> elements)
263
foreach (
var
element in elements)
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (1)
165
IList<
CustomAttributeTypedArgument
> ctorArgs = attr.ConstructorArguments;
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (1)
165
IList<
CustomAttributeTypedArgument
> ctorArgs = attr.ConstructorArguments;
Microsoft.Extensions.Logging (1)
src\runtime\src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
25
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Logging.Configuration (1)
src\runtime\src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (1)
25
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Telemetry (1)
Logging\Import\ProviderAliasUtilities.cs (1)
27
CustomAttributeTypedArgument
arg = attributeData.ConstructorArguments[0];
mscorlib (1)
parent\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\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (4)
236
IList<
CustomAttributeTypedArgument
> constructorArguments = data.ConstructorArguments;
239
CustomAttributeTypedArgument
tca = constructorArguments[i];
256
IList<
CustomAttributeTypedArgument
> constructorArguments = data.ConstructorArguments;
259
CustomAttributeTypedArgument
tca = constructorArguments[i];
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
330
IList<
CustomAttributeTypedArgument
> constructorArguments = cad.ConstructorArguments;
333
CustomAttributeTypedArgument
tca = constructorArguments[0];
System.Private.CoreLib (30)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (2)
57
IList<
CustomAttributeTypedArgument
> constructorArguments = ConstructorArguments;
86
public virtual IList<
CustomAttributeTypedArgument
> ConstructorArguments => null!;
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
656
case ReadOnlyCollection<
CustomAttributeTypedArgument
> args
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (12)
237
private IList<
CustomAttributeTypedArgument
> m_typedCtorArgs = null!;
326
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[]
346
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[] {
355
m_typedCtorArgs = Array.AsReadOnly(new
CustomAttributeTypedArgument
[]
395
CustomAttributeTypedArgument
[] typedArgs = [new CustomAttributeTypedArgument(typeof(Type), forwardedTo.Destination)];
422
m_typedCtorArgs = Array.Empty<
CustomAttributeTypedArgument
>();
430
public override IList<
CustomAttributeTypedArgument
> ConstructorArguments
438
CustomAttributeTypedArgument
[] typedCtorArgs = new
CustomAttributeTypedArgument
[m_ctorParams.Length];
451
m_typedCtorArgs = Array.Empty<
CustomAttributeTypedArgument
>();
615
CustomAttributeTypedArgument
[] arrayValue = new
CustomAttributeTypedArgument
[encodedArg.ArrayValue.Length];
System\Reflection\Runtime\ParameterInfos\NativeFormat\NativeFormatMethodParameterInfo.cs (2)
116
IList<
CustomAttributeTypedArgument
> args = attr.ConstructorArguments;
126
static int GetConstructorArgument(IList<
CustomAttributeTypedArgument
> args, int index)
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (1)
154
return
CustomAttributeTypedArgument
.ConvertToRuntimeValue(encodedArgument);
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)
21
public abstract override IList<
CustomAttributeTypedArgument
> ConstructorArguments { get; }
System\Reflection\TypeLoading\CustomAttributes\RoPseudoCustomAttributeData.cs (5)
13
private 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)
61
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)
134
IList<
CustomAttributeTypedArgument
> ctas = cad.ConstructorArguments;
137
CustomAttributeTypedArgument
cta = ctas[0];
System\Reflection\TypeLoading\Types\RoType.cs (1)
301
IList<
CustomAttributeTypedArgument
> fixedArguments = attribute.ConstructorArguments;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
467
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
CustomAttributeTypedArgument
))]
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
331
if (value is not IList<
CustomAttributeTypedArgument
> derivedTypeArguments)
System.Xaml (3)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
330
IList<
CustomAttributeTypedArgument
> constructorArguments = cad.ConstructorArguments;
333
CustomAttributeTypedArgument
tca = constructorArguments[0];
System\Xaml\Schema\Reflector.cs (1)
477
private Type ExtractType(
CustomAttributeTypedArgument
arg)