PostSharpAPI ReferencePost­Sharp.​Reflection.​Method­BodyIMetadata­Expression
Open sandboxFocus

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.MethodBody
Assembly: PostSharp.dll
Syntax
public interface IMetadataExpression : IExpression, IMethodBodyElement

Properties

Name Description
Declaration

Gets the declaration (System.Type, FieldInfo, System.Reflection.MethodInfo, System.Reflection.ConstructorInfo).