PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Block Class / Instruction­Block Methods / Instruction­Block.​Detach Method

InstructionBlock.Detach Method

Detaches the current block from its parent.

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 Detach()
Exceptions
ExceptionCondition
InvalidOperationExceptionThe instruction block has neither parent InstructionBlock neither parent MethodBodyDeclaration.
See Also