class Test
{
delegate void SimpleDelegate();
static void F()
{
System.Console.WriteLine("Test.F");
}
static void Main()
{
SimpleDelegate d = new SimpleDelegate(F);
Test.MultiCall(d, 3);
}
static void MultiCall(SimpleDelegate d, int count)
{
for (int i = 0; i < count; i++)
{
d();
}
}
}
{
delegate void SimpleDelegate();
static void F()
{
System.Console.WriteLine("Test.F");
}
static void Main()
{
SimpleDelegate d = new SimpleDelegate(F);
Test.MultiCall(d, 3);
}
static void MultiCall(SimpleDelegate d, int count)
{
for (int i = 0; i < count; i++)
{
d();
}
}
}