1 write to Value
System.Reflection.Metadata (1)
System\Reflection\Metadata\Signatures\CustomAttributeNamedArgument.cs (1)
18
Value
= value;
52 references to Value
ILAssembler (25)
PseudoCustomAttributes.Application.cs (12)
166
? (MethodCodeType)GetInt32(argument.
Value
)
213
int pack = GetInt32(packArgument.
Value
);
224
int size = GetInt32(sizeArgument.
Value
);
235
TypeAttributes? charSet = (CharSet)GetInt32(charSetArgument.
Value
) switch
280
MethodImportAttributes? callingConventionFlags = (CallingConvention)GetInt32(callingConventionArgument.
Value
) switch
303
MethodImportAttributes? charSetFlags = (CharSet)GetInt32(charSetArgument.
Value
) switch
320
&& GetBoolean(exactSpellingArgument.
Value
))
326
&& GetBoolean(setLastErrorArgument.
Value
))
333
flags |= GetBoolean(bestFitMappingArgument.
Value
)
340
flags |= GetBoolean(throwOnUnmappableCharArgument.
Value
)
347
&& !GetBoolean(preserveSigArgument.
Value
))
357
? GetString(entryPointArgument.
Value
)
PseudoCustomAttributes.MarshalAs.cs (13)
209
int iidParameterIndexValue = GetInt32(iidParameterIndex.
Value
);
235
int sizeConstValue = GetInt32(sizeConst.
Value
);
252
&& !TryWriteCompressed(context, descriptor, GetInt32(arraySubType.
Value
)))
276
if (!TryWriteCompressed(context, descriptor, GetInt32(fixedStringSize.
Value
)))
301
int safeArraySubTypeValue = GetInt32(safeArraySubType.
Value
);
316
if (!TryWriteCountedString(context, descriptor, GetString(userDefinedSubType.
Value
)))
332
int arraySubTypeValue = GetInt32(lpArraySubType.
Value
);
350
int sizeParamIndexValue = GetInt16(sizeParamIndex.
Value
);
363
int sizeConstValue = GetInt32(indexedSizeConst.
Value
);
379
|| !TryWriteCompressed(context, descriptor, GetInt32(unindexedSizeConst.
Value
))
400
? GetString(marshalType.
Value
)
401
: GetString(marshalTypeRefArgument!.Value.
Value
);
403
? GetString(marshalCookie.
Value
)
ILCompiler.Compiler (12)
Compiler\Dataflow\AttributeDataFlow.cs (2)
77
ProcessAttributeDataflow(field, namedArgument.
Value
, ref result);
89
ProcessAttributeDataflow(setter, ImmutableArray.Create(namedArgument.
Value
), ref result);
Compiler\Dataflow\DiagnosticUtilities.cs (2)
83
return (string)attribute.NamedArguments[0].
Value
;
194
namedArgument.
Value
is bool excludeStatics &&
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
186
if (!AddDependenciesFromCustomAttributeArgument(dependencies, factory, decodedArgument.Type, decodedArgument.
Value
))
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (3)
202
case ScopeProperty when p.
Value
is string scope:
205
case TargetProperty when p.
Value
is string target:
208
case MessageIdProperty when p.
Value
is string messageId:
parent\parent\Common\Compiler\MethodExtensions.cs (3)
58
return (string)argument.
Value
;
75
return (string)argument.
Value
;
92
return (TypeDesc)argument.
Value
;
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
168
callConvArray = (ImmutableArray<CustomAttributeTypedArgument<TypeDesc>>)arg.
Value
;
ILCompiler.ReadyToRun (5)
parent\parent\Common\Compiler\MethodExtensions.cs (3)
58
return (string)argument.
Value
;
75
return (string)argument.
Value
;
92
return (TypeDesc)argument.
Value
;
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
168
callConvArray = (ImmutableArray<CustomAttributeTypedArgument<TypeDesc>>)arg.
Value
;
PortableCallHelpers\PInvokeCollector.cs (1)
82
if (argument.Name == "EntryPoint" && argument.
Value
is string entryPoint)
ILCompiler.TypeSystem (9)
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (2)
549
if (!(namedArg.
Value
is bool))
551
if ((bool)namedArg.
Value
)
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (2)
818
if (!(arg.
Value
is bool))
820
_isWrapNonExceptionThrows = (bool)arg.
Value
;
parent\parent\Common\TypeSystem\Ecma\MetadataExtensions.cs (4)
261
flags.CharSet = (CharSet)namedArgument.
Value
;
265
flags.BestFitMapping = (bool)namedArgument.
Value
;
269
flags.SetLastError = (bool)namedArgument.
Value
;
273
flags.ThrowOnUnmappableChar = (bool)namedArgument.
Value
;
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
192
nameMaybe = (string)argument.
Value
;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
170
return new CustomAttributeNamedArgument(member!, ToApiForm(cang.Type, cang.
Value
));