PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Syntax Namespace / IMetadata­Expression Interface / IMetadata­Expression Properties
IMetadataExpression Properties

The IMetadataExpression type exposes the following members.

  Name Description
Public property Declaration
Gets the declaration (Type, FieldInfo, MethodInfo, ConstructorInfo).
Public property ParentElement
Gets the parent element in the tree.
(Inherited from ISyntaxElement.)
Public property ParentMethodBody
Gets the parent method body.
(Inherited from ISyntaxElement.)
Public property ReturnType
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 property SyntaxElementKind
Gets the kind of syntax element.
(Inherited from ISyntaxElement.)
See Also