using System;
delegate void D(int x);
class C
{
public static void M1(int i) {
Console.WriteLine("C.M1: " + i);
}
}
D cd1 = new D(C.M1);
D cd2 = C.M1;
Delegate instances cd1
and cd2
are created differently above.
Are they equivalent?
If not, what differences are between them?
Thanks.