PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Semantic­Declaration Class / Method­Semantic­Declaration Constructor / Method­Semantic­Declaration Constructor (Method­Semantics, Method­Def­Declaration)

MethodSemanticDeclaration Constructor (MethodSemantics, MethodDefDeclaration)

Initializes a new MethodSemanticDeclaration and sets its content.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MethodSemanticDeclaration(
	MethodSemantics semantic,
	MethodDefDeclaration method
)

Parameters

semantic
Type: PostSharp.Sdk.CodeModel.MethodSemantics
Semantic.
method
Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration
Method implementing the semantic.
See Also