4 overrides of GetRawConstantValue
System.Private.CoreLib (2)
src\System\Reflection\MdFieldInfo.cs (1)
88public override object? GetRawConstantValue() { return GetValue(true); }
src\System\Reflection\RtFieldInfo.cs (1)
86public override object GetRawConstantValue() { throw new InvalidOperationException(); }
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)
130public sealed override object? GetRawConstantValue() => IsLiteral ? ComputeRawConstantValue() : throw new InvalidOperationException();
15 references to GetRawConstantValue
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Workspaces\ClassificationTypeNamesTests.cs (1)
23.Select(f => new[] { f.Name, f.GetRawConstantValue() });
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\FieldInfoImpl.cs (1)
99return Field.GetRawConstantValue();
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
640AppendValue(field.GetRawConstantValue(), sb);
Microsoft.CodeAnalysis.Workspaces (1)
Log\RoslynEventSource.cs (1)
118var value = (int)function.GetRawConstantValue();
PresentationBuildTasks (1)
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();
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\DataModel.cs (1)
32var value = (int)field.GetRawConstantValue();
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
853EmitConstant(fi.GetRawConstantValue(), fi.FieldType);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (4)
3473int value = (int)staticField.GetRawConstantValue()!; 3479int value = (int)staticField.GetRawConstantValue()!; 3485ulong value = unchecked((ulong)(long)staticField.GetRawConstantValue()!); 5733object? constantValObj = staticField.GetRawConstantValue();
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)
359ret.SetValue(enumFields[i].GetRawConstantValue(), i);