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

MethodExtensions.FindOverride Method

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.MethodExtensions.FindOverride(PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean)"]

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 static GenericMethodReference FindOverride(
	this IMethod method,
	TypeDefDeclaration typeDef,
	bool inherit
)

Parameters

method
Type: PostSharp.Sdk.CodeModel.IMethod

[Missing <param name="method"/> documentation for "M:PostSharp.Sdk.CodeModel.MethodExtensions.FindOverride(PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean)"]

typeDef
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration

[Missing <param name="typeDef"/> documentation for "M:PostSharp.Sdk.CodeModel.MethodExtensions.FindOverride(PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean)"]

inherit
Type: System.Boolean

[Missing <param name="inherit"/> documentation for "M:PostSharp.Sdk.CodeModel.MethodExtensions.FindOverride(PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean)"]

Return Value

Type: GenericMethodReference

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.MethodExtensions.FindOverride(PostSharp.Sdk.CodeModel.IMethod,PostSharp.Sdk.CodeModel.TypeDefDeclaration,System.Boolean)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMethod. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also