Property ConstantValue
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 |
---|---|
Nullable<TypedConstant> |