PostSharp4.3//API Reference/Post­Sharp.​Reflection.​Syntax Namespace/IMetadata­Expression Interface
IMetadataExpression Interface
Expression that depends on a metadata declaration. This expression is used when compiling the typeof, sizeof or default keywords of C#, among others.

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

The IMetadataExpression type exposes the following members.

Public propertyDeclaration
Gets the declaration (Type, FieldInfo, MethodInfo, ConstructorInfo).
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.)
See Also