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