Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IField / Constant­Value

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

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