static void d() { Temp.MyDelegate d = new Temp.MyDelegate(f); Person p1 = new Person("1342", "anna"); IMyInterface imi = p1; bool b = d(new Person(), imi); Console.WriteLine(b.GetType()); }
static void d() { Temp.MyDelegate d1 = new Temp.MyDelegate(f); Temp.MyDelegate d2 = new Temp.MyDelegate(f); Person p1 = new Person("1342", "anna"); IMyInterface imi = p1; Console.WriteLine(d1(p1, imi)); }