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

IField.ConstantValue Property


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).

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