Mega Code Archive
Type GetMethod searches for the specified method, using the specified binding constraints
Imports System
Imports System.Reflection
Class Program
Public Sub MethodA()
End Sub
Public Shared Sub Main(ByVal args() As String)
Dim mInfo As MethodInfo = GetType(Program).GetMethod("MethodA", _
BindingFlags.Public Or BindingFlags.Instance)
Console.WriteLine("Found method: {0}", mInfo)
End Sub
End Class