Open sandboxFocus

Interface IBlockExpression

Block containing other blocks or instructions.

Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp.dll
Syntax
public interface IBlockExpression : IExpression, IMethodBodyElement
Remarks

A block typically contains other blocks or instructions. Blocks that contain instructions also implement the ISequenceExpression interface.

Properties

Name Description
ExceptionHandlerKind

Gets the kind of exception handler of the current block (Catch, None or Finally), or None if the current block is not an exception handler.

ExceptionHandlers

Gets the collection of exception handlers that protect the block, in which the current block is in the try role.

Items

Gets the collection of items in the block.

Label

Gets a string that uniquely identifies the block (inside the current method body) as a possible branching target.

LocalVariables

Gets the collection of local variables defined for the current block.

ParentExceptionHandler

Gets the parent exception handler in the current block is in the Catch, Filter or Finally role.