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