PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods / Method­Def­Declaration.​Find­Override Method

MethodDefDeclaration.FindOverride Method

Finds the override method that should be called when the current virtual method is called with an instance of a given type.

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 GenericMethodReference FindOverride(
	TypeDefDeclaration typeDef
)

Parameters

typeDef
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
Type of the instance on which the method is invoked.

Return Value

Type: GenericMethodReference
The method implementing the current semantic.
See Also