3 overrides of GetRawConstantValue
System.Private.CoreLib (1)
System\Reflection\Runtime\FieldInfos\RuntimeFieldInfo.cs (1)
162public sealed override object GetRawConstantValue()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
96public override object? GetRawConstantValue()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
129public 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)
118var value = (int)function.GetRawConstantValue();
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2519object rawEnumValue = enumField.GetRawConstantValue();
PresentationFramework (1)
System\Windows\Markup\BamlRecords.cs (1)
2519object rawEnumValue = enumField.GetRawConstantValue();
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
853EmitConstant(fi.GetRawConstantValue(), fi.FieldType);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
3495int value = (int)staticField.GetRawConstantValue()!; 3501int value = (int)staticField.GetRawConstantValue()!; 3507ulong value = unchecked((ulong)(long)staticField.GetRawConstantValue()!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (1)
444object? constantValObj = staticField.GetRawConstantValue();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (1)
119values[i] = flds[i].GetRawConstantValue()!;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
98return UnderlyingField.GetRawConstantValue();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
375ret.SetValue(enumFields[i].GetRawConstantValue(), i);