using System;
using System.Reflection;
namespace GeekHumor
{
public class MyMadness
{
public bool There()
{
return true;
}
static void Main(string[] args)
{
Type t = typeof(MyMadness);
MemberInfo mi = t.GetMethod("There");
if(mi != null)
Console.WriteLine("There is a method to MyMadness.");
else
Console.WriteLine("There is no method to MyMadness.");
}
}
}
Build that, run it, and you’ll at long last have a solid demonstration that There is indeed a method to MyMadness.