PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Signature­Extensions Class / Type­Signature­Extensions Methods / Type­Signature­Extensions.​Find­Method Method / Type­Signature­Extensions.​Find­Method Method (IType­Signature, String, IMethod­Signature, Binding­Options)

TypeSignatureExtensions.FindMethod Method (ITypeSignature, String, IMethodSignature, BindingOptions)

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

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 FindMethod(
	this ITypeSignature typeSignature,
	string methodName,
	IMethodSignature methodSignature,
	BindingOptions bindingOptions = BindingOptions.Default
)

Parameters

typeSignature
Type: PostSharp.Sdk.CodeModel.ITypeSignature

[Missing <param name="typeSignature"/> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

methodName
Type: System.String

[Missing <param name="methodName"/> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

methodSignature
Type: PostSharp.Sdk.CodeModel.IMethodSignature

[Missing <param name="methodSignature"/> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

bindingOptions (Optional)
Type: PostSharp.Sdk.CodeModel.BindingOptions

[Missing <param name="bindingOptions"/> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

Return Value

Type: GenericMethodReference

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.FindMethod(PostSharp.Sdk.CodeModel.ITypeSignature,System.String,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITypeSignature. 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