MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIFieldConstant­Value
Open sandboxFocus

IField.ConstantValue Property

ConstantValue

Gets the value of the field, if the field is a const. Not to be confused with the InitializerExpression, which is available even if the field is not const, but only when the field is defined in source code (as opposed to being defined in a referenced assembly).

Declaration
Nullable<TypedConstant> ConstantValue { get; }
Property Value
Type Description
System.Nullable<TypedConstant>