PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Data­Section­Declaration Class / Data­Section­Declaration Constructor

DataSectionDeclaration Constructor

Initializes a new DataSectionDeclaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public DataSectionDeclaration(
	string name,
	byte[] data,
	DataSectionKind sectionKind
)

Parameters

name
Type: System.String
Data section name (label).
data
Type: System.Byte[]
Raw data.
sectionKind
Type: PostSharp.Sdk.CodeModel.DataSectionKind
Kind of data declaration (segment of the PE format it should be defined in).
See Also