Enters an InstructionBlock.
Namespace:
PostSharp.CodeModelAssembly: 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 ) |
Parameters
- block
- Type: PostSharp.CodeModel..::.InstructionBlock
The InstructionBlock to open.
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
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | The current InstructionReader is currently at an invalid position. It should be open on the parent of block. |