PostSharp SDK 6.9 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Metadata­Declaration Class / Metadata­Declaration Type Conversions / Metadata­Declaration Implicit Conversion (Metadata­Declaration to Message­Location)

MetadataDeclaration Implicit Conversion (MetadataDeclaration to MessageLocation)

Wraps a MetadataDeclaration into a MessageLocation.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static implicit operator MessageLocation (
	MetadataDeclaration declaration
)

Parameters

declaration
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
A MetadataDeclaration (or null).

Return Value

Type: MessageLocation
A MessageLocation wrapping declaration, or null if declaration is null.
See Also