9 public delegate string ToStr (string format
, IFormatProvider format_provider
);
12 public class GenericClass
<T
> where T
: IFormattable
16 public GenericClass (T t
)
23 ToStr str
= new ToStr (field
.ToString
);
25 Console
.WriteLine (str ("x", null));
28 public void Test (T t
) { }
35 public static void Main (string [] args
)
37 GenericClass
<int> example
= new GenericClass
<int> (99);