3 public delegate B Test
<A
,B
> (A a
);
14 public U Method
<U
> (Test
<T
,U
> test
)
24 Test
<double,int> test
= new Test
<double,int> (Math
.Sign
);
26 Foo
<double> foo
= new Foo
<double> (Math
.PI
);
27 Console
.WriteLine (foo
.Method
<int> (test
));
29 string s
= foo
.Method
<string> (delegate (double d
) { return "s" + d; }
);
30 Console
.WriteLine (s
);