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