© { JSL }
98
static Method
·
a
delegate
instance...
w
can hold and call a
static
method
delegate void
Func(
string
s);
...
class
Test
{
static void
Display(
string
s)
{
...
}
static void
Main(
string
[] args)
{
Eg.ForAll(args,
new
Func(Test.Display));
Eg.ForAll(args,
new
Func(Display));
}
}
note no ( )
create a delegate instance