PostSharp4.3//API Reference/Post­Sharp.​Reflection.​Syntax Namespace/IBlock­Expression Interface
IBlockExpression Interface
Block containing other blocks or instructions.

Namespace: PostSharp.Reflection.Syntax
Assembly: PostSharp (in PostSharp.dll) Version: (
public interface IBlockExpression : IExpression, 

The IBlockExpression type exposes the following members.

Public propertyExceptionHandlers
Gets the collection of exception handlers that protect the block.
Public propertyItems
Gets the collection of items in the block.
Public propertyLabel
Gets a string that uniquely identifies the block (inside the current method body) as a possible branching target.
Public propertyLocalVariables
Gets the collection of local variables defined for the current block.
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from ISyntaxElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from ISyntaxElement.)
Public propertyReturnType
Gets the type of the return value of the current expression, or Void if the expression does not return anything (i.e. for pure instructions, for instance a goto or throw instruction).
(Inherited from IExpression.)
Public propertySyntaxElementKind
Gets the kind of syntax element.
(Inherited from ISyntaxElement.)

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

See Also