PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Metadata­Declaration Class / Metadata­Declaration Properties / Metadata­Declaration.​Original­Declaration Property

MetadataDeclaration.OriginalDeclaration Property

When the declaration represents another declaration in the source assembly, this property refers to this declaration. When using GetReflectionObject(Type[], Type[], BindingOptions), the original declaration should actually be retrieved.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public MetadataDeclaration OriginalDeclaration { get; set; }

Property Value

Type: MetadataDeclaration
See Also