Enters an InstructionBlock.

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

Syntax

Visual Basic (Declaration)
Public Sub EnterInstructionBlock ( _
	block As InstructionBlock _
)
C#
public void EnterInstructionBlock(
	InstructionBlock block
)
Visual C++
public:
void EnterInstructionBlock(
	InstructionBlock^ block
)

Remarks

Prepares the current InstructionReader so that it can read a specific InstructionBlock, with the assumption that the InstructionReader is in the parent of the block to open.

Exceptions

ExceptionCondition
System..::.InvalidOperationException The current InstructionReader is currently at an invalid position. It should be open on the parent of block.

See Also