3 overrides of GetRawConstantValue
System.Private.CoreLib (1)
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (1)
162
public sealed override object
GetRawConstantValue
()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
96
public override object?
GetRawConstantValue
()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
129
public sealed override object?
GetRawConstantValue
() => IsLiteral ? ComputeRawConstantValue() : throw new InvalidOperationException();
12 references to GetRawConstantValue
Microsoft.CodeAnalysis (1)
CommandLine\Feature.cs (1)
41
.Select(f => (string)f.
GetRawConstantValue
()!);
Microsoft.CodeAnalysis.Workspaces (1)
Log\RoslynEventSource.cs (1)
118
var value = (int)function.
GetRawConstantValue
();
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2519
object rawEnumValue = enumField.
GetRawConstantValue
();
PresentationFramework (1)
System\Windows\Markup\BamlRecords.cs (1)
2519
object rawEnumValue = enumField.
GetRawConstantValue
();
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
853
EmitConstant(fi.
GetRawConstantValue
(), fi.FieldType);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
3495
int value = (int)staticField.
GetRawConstantValue
()!;
3501
int value = (int)staticField.
GetRawConstantValue
()!;
3507
ulong value = unchecked((ulong)(long)staticField.
GetRawConstantValue
()!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
444
object? constantValObj = staticField.
GetRawConstantValue
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (1)
119
values[i] = flds[i].
GetRawConstantValue
()!;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
98
return UnderlyingField.
GetRawConstantValue
();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
375
ret.SetValue(enumFields[i].
GetRawConstantValue
(), i);