PostSharp SDK 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public MetadataDeclaration OriginalDeclaration { get; set; }

Property Value

Type: MetadataDeclaration
See Also