Represents a data section, where initial values of fieds are stored.

Namespace:  PostSharp.CodeModel
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class DataSectionDeclaration _
	Inherits Declaration _
	Implements IWriteILDefinition, IObservable(Of Integer)
C#
public sealed class DataSectionDeclaration : Declaration, IWriteILDefinition, 
	IObservable<int>
Visual C++
public ref class DataSectionDeclaration sealed : public Declaration, 
	IWriteILDefinition, IObservable<int>

Remarks

Data declarations are owned by the module (ModuleDeclaration) on the Datas property.

Fields (FieldDefDeclaration) with fixed binary layout may be initialized to a value stored in a DataSectionDeclaration by setting the InitialValue property.

Inheritance Hierarchy

System..::.Object
  PostSharp.CodeModel..::.Element
    PostSharp.CodeModel..::.Declaration
      PostSharp.CodeModel..::.DataSectionDeclaration

See Also