namespace bla_bla_bla
{
public delegate string bonusFunction(Game game);
public static class Bonus
{
public static string Kattenacho(Game game)
{
return "Каттеначо";
}
}
class Program
{
static void Main(string[] args)
{
bonusFunction b = Bonus.Kattenacho;
Console.WriteLine(b.GetType().FullName);
}
}
}
bonusFunction b = Bonus.Kattenacho;
Type methodHost = b.Method.DeclaringType;
string methodName = b.Method.Name;
Console.WriteLine("{0} -> {1}", methodHost.FullName, methodName);