Gets the DynamicMethod from the MethodInfo based on IL Generator. Used for getting the original virtual, non inherited method of a grandparent base type.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static DynamicMethod CreateNonVirtualDynamicMethod( this MethodInfo method ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function CreateNonVirtualDynamicMethod ( method As MethodInfo ) As DynamicMethod |
Visual C++ |
---|
public: [ExtensionAttribute] static DynamicMethod^ CreateNonVirtualDynamicMethod( MethodInfo^ method ) |
F# |
---|
static member CreateNonVirtualDynamicMethod : method : MethodInfo -> DynamicMethod |
Parameters
- method
- Type: System.Reflection..::..MethodInfo
Source MethodInfo
Return Value
Type: DynamicMethodDynamicMethod
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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
http://kennethxu.blogspot.com/2009/05/cnet-calling-grandparent-virtual-method.html