PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Field­Def­Declaration Class / Field­Def­Declaration Properties / Field­Def­Declaration.​Literal­Value Property

FieldDefDeclaration.LiteralValue Property

Gets the value of the literal field.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public SerializedValue LiteralValue { get; set; }

Property Value

Type: SerializedValue
A SerializedValue, or null if the field is not literal.
The value of the current property determines the value of a literal field, i.e. a field whose Attributes includes Literal. Some rules apply to literal fields. They are not enforced by the Code Object Model.
See Also