1 write to FixedArguments
System.Reflection.Metadata (1)
System\Reflection\Metadata\Signatures\CustomAttributeValue.cs (1)
15
FixedArguments
= fixedArguments;
82 references to FixedArguments
ILCompiler.Compiler (37)
Compiler\AssemblyExtensions.cs (2)
26
if (decoded.
FixedArguments
.Length == 1 && decoded.
FixedArguments
[0].Value is string tfm && !string.IsNullOrEmpty(tfm))
Compiler\Dataflow\AttributeDataFlow.cs (2)
57
var builder = ImmutableArray.CreateBuilder<object?>(arguments.
FixedArguments
.Length);
58
foreach (var argument in arguments.
FixedArguments
)
Compiler\Dataflow\CompilerGeneratedState.cs (2)
654
if (attribute.
FixedArguments
.Length == 0)
657
return attribute.
FixedArguments
[0].Value as TypeDesc;
Compiler\Dataflow\DiagnosticUtilities.cs (2)
74
if (attribute.
FixedArguments
.Length != 0)
75
return (string)attribute.
FixedArguments
[0].Value;
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
164
foreach (CustomAttributeTypedArgument<TypeDesc> decodedArgument in value.
FixedArguments
)
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (1)
103
var fixedArgs = attribute.
FixedArguments
;
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (2)
156
&& decodedAttr.Value.
FixedArguments
.Length == 1
157
&& decodedAttr.Value.
FixedArguments
[0].Value is int searchPath)
Compiler\Logging\MessageContainer.cs (5)
206
if (attribute.
FixedArguments
.Length != 2)
209
if (!attribute.
FixedArguments
[0].Type.IsString
210
|| !((string)(attribute.
FixedArguments
[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
213
if (!attribute.
FixedArguments
[1].Type.IsString)
216
string value = (string)attribute.
FixedArguments
[1].Value;
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (2)
179
if (attribute.
FixedArguments
.Length < 2)
187
if (!(attribute.
FixedArguments
[1].Value is string warningId) ||
Compiler\SubstitutionProvider.cs (2)
63
if (featureSwitchDefinitionAttribute.
FixedArguments
is not [CustomAttributeTypedArgument<TypeDesc> { Value: string switchName }])
73
if (featureGuardAttribute.
FixedArguments
is not [CustomAttributeTypedArgument<TypeDesc> { Value: EcmaType featureType }])
Compiler\UsageBasedMetadataManager.cs (5)
381
if (attribute.
FixedArguments
.Length != 2)
384
if (!attribute.
FixedArguments
[0].Type.IsString
385
|| !((string)(attribute.
FixedArguments
[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
388
if (!attribute.
FixedArguments
[1].Type.IsString)
391
string value = (string)attribute.
FixedArguments
[1].Value;
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (7)
23
if (decodedValue.
FixedArguments
.Length != 0)
24
return (string)decodedValue.
FixedArguments
[decodedValue.
FixedArguments
.Length - 1].Value;
37
if (decodedValue.
FixedArguments
.Length == 2)
38
return (string)decodedValue.
FixedArguments
[0].Value;
51
if (decodedValue.
FixedArguments
.Length != 0)
52
return (string)decodedValue.
FixedArguments
[0].Value;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (3)
426
if (attrValue.
FixedArguments
is not [{ Value: string assemblyName }])
446
switch (attrValue.
FixedArguments
)
470
if (attrValue.
FixedArguments
is not [{ Value: TypeDesc type }, { Value: TypeDesc associatedType }])
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
906
var guidValue = (string)guidAttributeValue.Value.
FixedArguments
[0].Value;
ILCompiler.ReadyToRun (20)
Compiler\AssemblyExtensions.cs (7)
31
if (decoded.
FixedArguments
.Length == 1)
34
if (!(decoded.
FixedArguments
[0].Value is int))
38
DebuggableAttribute.DebuggingModes modes = (DebuggableAttribute.DebuggingModes)decoded.
FixedArguments
[0].Value;
41
else if (decoded.
FixedArguments
.Length == 2)
44
if (!(decoded.
FixedArguments
[0].Value is bool) || !(decoded.
FixedArguments
[1].Value is bool))
48
result = ((bool)decoded.
FixedArguments
[1].Value);
Compiler\ReadyToRunVisibilityRootProvider.cs (2)
156
if ((string)assemblyMetadata.
FixedArguments
[0].Value == "IsTrimmable")
158
return bool.TryParse((string)assemblyMetadata.
FixedArguments
[1].Value, out bool isTrimmable) && isTrimmable;
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
625
var fixedArguments = customAttribute.DecodeValue(typeProvider).
FixedArguments
;
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (7)
23
if (decodedValue.
FixedArguments
.Length != 0)
24
return (string)decodedValue.
FixedArguments
[decodedValue.
FixedArguments
.Length - 1].Value;
37
if (decodedValue.
FixedArguments
.Length == 2)
38
return (string)decodedValue.
FixedArguments
[0].Value;
51
if (decodedValue.
FixedArguments
.Length != 0)
52
return (string)decodedValue.
FixedArguments
[0].Value;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (3)
426
if (attrValue.
FixedArguments
is not [{ Value: string assemblyName }])
446
switch (attrValue.
FixedArguments
)
470
if (attrValue.
FixedArguments
is not [{ Value: TypeDesc type }, { Value: TypeDesc associatedType }])
ILCompiler.TypeSystem (20)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (3)
536
if (decoded.
FixedArguments
.Length != 1 || !(decoded.
FixedArguments
[0].Value is bool))
538
if ((bool)decoded.
FixedArguments
[0].Value)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (2)
550
var value = attr.DecodeValue(new CustomAttributeTypeProvider(_module)).
FixedArguments
[0].Value;
578
if (attrValue.
FixedArguments
is not [{ Value: int kind }])
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.TypeEquivalence.cs (9)
37
if (guidAttribute.Value.
FixedArguments
.Length < 1)
40
if (guidAttribute.Value.
FixedArguments
[0].Type != Context.GetWellKnownType(WellKnownType.String))
43
string scope = (string)guidAttribute.Value.
FixedArguments
[0].Value;
63
if (typeIdentifierAttribute.Value.
FixedArguments
.Length == 0)
66
if (typeIdentifierAttribute.Value.
FixedArguments
.Length != 2)
69
if (typeIdentifierAttribute.Value.
FixedArguments
[0].Type != Context.GetWellKnownType(WellKnownType.String))
72
if (typeIdentifierAttribute.Value.
FixedArguments
[1].Type != Context.GetWellKnownType(WellKnownType.String))
75
return new TypeIdentifierData((string)typeIdentifierAttribute.Value.
FixedArguments
[0].Value, (string)typeIdentifierAttribute.Value.
FixedArguments
[1].Value);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (2)
235
if (customAttributeValue.Value.
FixedArguments
.Length == 1)
237
CallingConvention callingConvention = (CallingConvention)customAttributeValue.Value.
FixedArguments
[0].Value;
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (4)
177
if (decodedValue.
FixedArguments
.Length != 1
178
|| decodedValue.
FixedArguments
[0].Type.UnderlyingType != context.GetWellKnownType(WellKnownType.Int32))
183
kind = (UnsafeAccessorKind)decodedValue.
FixedArguments
[0].Value!;
624
if (decoded.
FixedArguments
[0].Value is not string replacementTypeName)
Microsoft.NET.HostModel (4)
ComHost\ClsidMap.cs (4)
148
return (bool)data.
FixedArguments
[0].Value;
164
return (bool)data.
FixedArguments
[0].Value;
198
return Guid.Parse((string)data.
FixedArguments
[0].Value);
212
return (string)data.
FixedArguments
[0].Value;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
96
_lazyFixedArguments = cav.
FixedArguments
;