Check if a method is declared in a given Type.

Namespace: NHibernate.Util
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static bool IsMethodOf(
	this MethodInfo source,
	Type realDeclaringType
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsMethodOf ( _
	source As MethodInfo, _
	realDeclaringType As Type _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool IsMethodOf(
	MethodInfo^ source, 
	Type^ realDeclaringType
)

Parameters

source
Type: System.Reflection..::..MethodInfo
The method to check.
realDeclaringType
Type: System..::..Type
The where the method is really declared.

Return Value

True if the method is an implementation of the method declared in realDeclaringType; false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MethodInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also