PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods / Method­Def­Declaration.​Release­Body Method

MethodDefDeclaration.ReleaseBody Method

Indicates that the body is no more needed in memory, so that it is marked for garbage collection.

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 void ReleaseBody()
Remarks
The body will be rebuilt from the PE image the next time it will be requested. All changes will be lost.
See Also