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, IMethod, Generic­Map)

CanonicalMethodMapping Constructor (AspectInfrastructureTask, IMethod, GenericMap)

Note: This API is now obsolete.

Initializes a new CanonicalMethodMapping from a method.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
[ObsoleteAttribute("Use the other public constructor instead, setting method.DeclaringType as declaringType, and method.GetMethodDefinition() as prototypeMethodDef.")]
public CanonicalMethodMapping(
	AspectInfrastructureTask task,
	IMethod method,
	GenericMap genericMap
)

Parameters

task
Type: PostSharp.Sdk.AspectInfrastructure.AspectInfrastructureTask
Parent AspectInfrastructureTask.
method
Type: PostSharp.Sdk.CodeModel.IMethod
Method for which the CanonicalMethodMapping is required.
genericMap
Type: PostSharp.Sdk.CodeModel.GenericMap
GenericMap with which the generic arguments of method are transformed.
See Also