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

FieldDefDeclaration.MarshalType Property

Gets or sets the MarshalType of the field.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MarshalType MarshalType { get; set; }

Property Value

Type: MarshalType
A MarshalType, or null if default marshaling should be performed.
Remarks
This field should be set if and only if the field Attributes includes HasFieldMarshal. This rule is not enforced by the Code Object Model.
See Also