·a delegate
is the last C# type...
wdeclares a
named signature including return type
wlike a C++
function pointer/object
wsimilar to
a Delphi closure
delegate void Func(string s);
class Eg
{
public static void ForAll(string[] args, Func call)
{
foreach (string arg in args)
{
call(arg);
}
}
}