6 private delegate void TGenericDelegate
<T
>(string param
);
7 public static void Main (string[] args
)
15 TGenericDelegate
<string> del
= ADelegate
<string>;
16 TestMethod
<string> ("a param", ADelegate
<string>);
17 TestMethod
<string> ("another param", del
);
20 private void TestMethod
<T
> (string param
, TGenericDelegate
<T
> del
)
22 Console
.WriteLine ("TestMethod <T> called with param: {0}. Calling a delegate", param
);
27 private void ADelegate
<T
> (string param
)
29 Console
.WriteLine ("ADelegate <T> called with param: {0}", param
);