5 overrides of ConstructorArguments
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
417public override IList<CustomAttributeTypedArgument> ConstructorArguments
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (1)
25public override IList<CustomAttributeTypedArgument> ConstructorArguments
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\RoCustomAttributeData.cs (1)
23public abstract override IList<CustomAttributeTypedArgument> ConstructorArguments { get; }
System.Xaml.Tests (2)
System\Xaml\XamlSchemaContextTests.cs (1)
1045public override IList<CustomAttributeTypedArgument> ConstructorArguments => ConstructorArgumentsResult!;
System\Xaml\XamlTypeTests.cs (1)
5309public override IList<CustomAttributeTypedArgument> ConstructorArguments => ConstructorArgumentsResult!;
89 references to ConstructorArguments
Microsoft.AspNetCore.Components.WebAssembly (1)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.7.25358.102\contentFiles\cs\net6.0\MetadataUpdateHandlerInvoker.cs (1)
166IList<CustomAttributeTypedArgument> ctorArgs = attr.ConstructorArguments;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
257var args = attrs[0].ConstructorArguments.ToArray();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Debugger\Engine\DkmClrType.cs (3)
242var state = (DebuggerBrowsableState)data.ConstructorArguments[0].Value; 276Value = (string)attributeData.ConstructorArguments.Single().Value, 294foreach (var typedArg in attributeData.ConstructorArguments)
Debugger\MemberInfo\CustomAttributeDataImpl.cs (1)
37return CustomAttributeData.ConstructorArguments.Select(MakeTypedArgument).ToList();
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
94foreach (var positionalArgument in attribute.ConstructorArguments)
Microsoft.CodeAnalysis.UnitTests (5)
Collections\DebuggerAttributes.cs (5)
76return (DebuggerBrowsableState?)(int?)debuggerBrowsableAttribute?.ConstructorArguments.Single().Value; 114Type? proxyType = cad.ConstructorArguments[0].ArgumentType == typeof(Type) ? 115(Type?)cad.ConstructorArguments[0].Value : 116Type.GetType((string)cad.ConstructorArguments[0].Value!); 143string attrText = (string?)cad.ConstructorArguments[0].Value ?? throw new InvalidOperationException("Expected a non-null text");
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
219foreach (CustomAttributeTypedArgument ctorArg in attr.ConstructorArguments) 242foreach (CustomAttributeTypedArgument ctorArg in attr.ConstructorArguments)
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
1175if (attributeData.ConstructorArguments.Count != 1) 1182.ConstructorArguments[0]
Microsoft.Extensions.DependencyInjection (3)
ServiceLookup\CallSiteFactory.cs (3)
134attributeData.ConstructorArguments.Count == 1 && 135attributeData.ConstructorArguments[0].ArgumentType.FullName == "System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes") 137return (DynamicallyAccessedMemberTypes)(int)attributeData.ConstructorArguments[0].Value!;
Microsoft.Extensions.Logging (2)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (2)
23attributeData.ConstructorArguments.Count > 0) 25CustomAttributeTypedArgument arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Logging.Configuration (2)
src\libraries\Common\src\Extensions\ProviderAliasUtilities\ProviderAliasUtilities.cs (2)
23attributeData.ConstructorArguments.Count > 0) 25CustomAttributeTypedArgument arg = attributeData.ConstructorArguments[0];
Microsoft.Extensions.Telemetry (2)
Logging\Import\ProviderAliasUtilities.cs (2)
26attributeData.ConstructorArguments.Count > 0) 28CustomAttributeTypedArgument arg = attributeData.ConstructorArguments[0];
Microsoft.Maui.Controls.Xaml (5)
ApplyPropertiesVisitor.cs (3)
292 if (contentAttribute == null || contentAttribute.ConstructorArguments.Count != 1) 294 if (contentAttribute.ConstructorArguments[0].ArgumentType == typeof(string)) 295 return (string)contentAttribute.ConstructorArguments[0].Value;
CreateValuesVisitor.cs (2)
217 .ConstructorArguments.First() 315 .ConstructorArguments.First()
Microsoft.ML.Core (1)
Data\Repository.cs (1)
434return assemblyInternationalVersionAttribute.ConstructorArguments
PresentationBuildTasks (7)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (3)
867constructorArgumentName = attributeData.ConstructorArguments[0].Value as string; 876bracketCharacters.AddBracketCharacters((char)attributeData.ConstructorArguments[0].Value, (char)attributeData.ConstructorArguments[1].Value);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
4948contentWrapper = attributes[i].ConstructorArguments[0].Value as Type;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
236IList<CustomAttributeTypedArgument> constructorArguments = data.ConstructorArguments; 256IList<CustomAttributeTypedArgument> constructorArguments = data.ConstructorArguments;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
330IList<CustomAttributeTypedArgument> constructorArguments = cad.ConstructorArguments;
PresentationFramework (3)
System\Windows\Markup\ParserContext.cs (3)
867constructorArgumentName = attributeData.ConstructorArguments[0].Value as string; 876bracketCharacters.AddBracketCharacters((char)attributeData.ConstructorArguments[0].Value, (char)attributeData.ConstructorArguments[1].Value);
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
219foreach (CustomAttributeTypedArgument ctorArg in attr.ConstructorArguments) 242foreach (CustomAttributeTypedArgument ctorArg in attr.ConstructorArguments)
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (4)
3050Debug.Assert(data.ConstructorArguments.Count <= 1); 3052if (data.ConstructorArguments.Count == 1) 3054attr = (Attribute?)Activator.CreateInstance(attributeType, [data.ConstructorArguments[0].Value]); 3056else if (data.ConstructorArguments.Count == 0)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeData.cs (1)
57IList<CustomAttributeTypedArgument> constructorArguments = ConstructorArguments;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (6)
46attribute.ConstructorArguments.Count == 1) 48state = TranslateByte(attribute.ConstructorArguments[0].Value); 309attribute.ConstructorArguments.Count == 1) 311if (attribute.ConstructorArguments[0].Value is bool boolValue && boolValue) 401attribute.ConstructorArguments.Count == 1) 403return new NullableAttributeStateParser(attribute.ConstructorArguments[0].Value);
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
229return attrs[i].ConstructorArguments[parameter];
src\System\Reflection\RuntimeParameterInfo.cs (3)
377IList<CustomAttributeTypedArgument> args = attr.ConstructorArguments; 398Debug.Assert(attr.ConstructorArguments.Count == 1); 400return new DateTime((long)attr.ConstructorArguments[0].Value!);
src\System\RuntimeType.CoreCLR.cs (1)
1599m_defaultMemberName = attr.ConstructorArguments[0].Value as string;
System.Private.Windows.Core.TestUtilities (5)
DebuggerAttributes.cs (5)
63return (DebuggerBrowsableState?)(int?)debuggerBrowsableAttribute?.ConstructorArguments.Single().Value; 102Type proxyType = cad.ConstructorArguments[0].ArgumentType == typeof(Type) ? 103(Type)cad.ConstructorArguments[0].Value : 104Type.GetType((string)cad.ConstructorArguments[0].Value); 129string attrText = (string)cad.ConstructorArguments[0].Value;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingCustomAttributeData.cs (1)
27get { return UnderlyingAttribute.ConstructorArguments; }
System.Reflection.MetadataLoadContext (4)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (2)
93IList<CustomAttributeTypedArgument> cats = cad.ConstructorArguments; 109IList<CustomAttributeTypedArgument> cats = cad.ConstructorArguments;
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
134IList<CustomAttributeTypedArgument> ctas = cad.ConstructorArguments;
System\Reflection\TypeLoading\Types\RoType.cs (1)
305IList<CustomAttributeTypedArgument> fixedArguments = attribute.ConstructorArguments;
System.Xaml (19)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
330IList<CustomAttributeTypedArgument> constructorArguments = cad.ConstructorArguments;
System\Xaml\MS\Impl\XmlNsInfo.cs (8)
171string xmlns = cad.ConstructorArguments[0].Value as string; 172string clrns = cad.ConstructorArguments[1].Value as string; 261string assemblyName = cad.ConstructorArguments[0].Value as string; 320string oldns = cad.ConstructorArguments[0].Value as string; 321string newns = cad.ConstructorArguments[1].Value as string; 373string xmlns = cad.ConstructorArguments[0].Value as string; 374string prefix = cad.ConstructorArguments[1].Value as string; 423return cad.ConstructorArguments[0].Value as string;
System\Xaml\Schema\Reflector.cs (10)
430char openingBracket = (char) (attributeData.ConstructorArguments[0].Value); 431char closingBracket = (char) (attributeData.ConstructorArguments[1].Value); 444if (cad.ConstructorArguments.Count == 1) 446result = ExtractType(cad.ConstructorArguments[0]); 459if (cad.ConstructorArguments.Count != count) 467result[i] = ExtractType(cad.ConstructorArguments[i]); 494if (cad.ConstructorArguments.Count == 0) 499if (cad.ConstructorArguments.Count > 1 || 500!TypesAreEqual(cad.ConstructorArguments[0].ArgumentType, typeof(T))) 505return (T)cad.ConstructorArguments[0].Value;
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
5216ConstructorArgumentsResult = c.ConstructorArguments