PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Compare­Extensions Class / Compare­Extensions Methods / Compare­Extensions.​Definition­Matches­Reference Method / Compare­Extensions.​Definition­Matches­Reference Method (IMethod­Signature, IMethod­Signature, Binding­Options)

CompareExtensions.DefinitionMatchesReference Method (IMethodSignature, IMethodSignature, BindingOptions)

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.CompareExtensions.DefinitionMatchesReference(PostSharp.Sdk.CodeModel.IMethodSignature,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 bool DefinitionMatchesReference(
	this IMethodSignature definition,
	IMethodSignature reference,
	BindingOptions options = BindingOptions.Default
)

Parameters

definition
Type: PostSharp.Sdk.CodeModel.IMethodSignature

[Missing <param name="definition"/> documentation for "M:PostSharp.Sdk.CodeModel.CompareExtensions.DefinitionMatchesReference(PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

reference
Type: PostSharp.Sdk.CodeModel.IMethodSignature

[Missing <param name="reference"/> documentation for "M:PostSharp.Sdk.CodeModel.CompareExtensions.DefinitionMatchesReference(PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

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

[Missing <param name="options"/> documentation for "M:PostSharp.Sdk.CodeModel.CompareExtensions.DefinitionMatchesReference(PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.IMethodSignature,PostSharp.Sdk.CodeModel.BindingOptions)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.CompareExtensions.DefinitionMatchesReference(PostSharp.Sdk.CodeModel.IMethodSignature,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 IMethodSignature. 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