Gets the original virtual, non inherited method of a grandparent base type and further down in an inheritance chain.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static TDelegate GetNonVirtualMethod<TDelegate>(
	this Type type,
	string name
)
where TDelegate : class
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetNonVirtualMethod(Of TDelegate As Class) ( 
	type As Type,
	name As String
) As TDelegate
Visual C++
public:
[ExtensionAttribute]
generic<typename TDelegate>
where TDelegate : ref class
static TDelegate GetNonVirtualMethod(
	Type^ type, 
	String^ name
)
F#
static member GetNonVirtualMethod : 
        type : Type * 
        name : string -> 'TDelegate  when 'TDelegate : not struct

Parameters

type
Type: System..::..Type
Base Type
name
Type: System..::..String
Method Name

Type Parameters

TDelegate

Return Value

Type: TDelegate
TDelegate used for calling the base type method.

Usage Note

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

Remarks

http://kennethxu.blogspot.com/2009/05/cnet-calling-grandparent-virtual-method.html

See Also