PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Canonical­Method­Mapping Class / Canonical­Method­Mapping Constructor / Canonical­Method­Mapping Constructor (Aspect­Infrastructure­Task, IType­Signature, IMethod­Signature, Generic­Map, Method­Def­Declaration)

CanonicalMethodMapping Constructor (AspectInfrastructureTask, ITypeSignature, IMethodSignature, GenericMap, MethodDefDeclaration)

Initializes a new CanonicalMethodMapping by specifying it completely.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public CanonicalMethodMapping(
	AspectInfrastructureTask task,
	ITypeSignature declaringType,
	IMethodSignature methodSignature,
	GenericMap genericMap,
	MethodDefDeclaration prototypeMethodDef
)

Parameters

task
Type: PostSharp.Sdk.AspectInfrastructure.AspectInfrastructureTask
Parent AspectInfrastructureTask.
declaringType
Type: PostSharp.Sdk.CodeModel.ITypeSignature
Declaring type of the method.
methodSignature
Type: PostSharp.Sdk.CodeModel.IMethodSignature
Signature of the method.
genericMap
Type: PostSharp.Sdk.CodeModel.GenericMap
GenericMap with which the generic arguments of declaringType and methodSignature are transformed.
prototypeMethodDef
Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration
Method from which the MethodMappingInformation is constructed.
See Also