Mega Code Archive

 
Categories / C# by API / System
 

Type GetMethod(String methodName)

using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Reflection; using System.Reflection.Emit; public class MainClass {     public static void Main()     {         Type typeInfo = typeof(object);         MethodInfo methInfo = typeInfo.GetMethod("ToString");         Console.WriteLine("Info: {0}", methInfo);     } }