A micro-optimization of 'make dist'
[mcs.git] / tests / gtest-398.cs
blob626c5a7fd906d141a21c97f3c2ebe690cb58e874
1 using System;
4 public interface IFace
6 void Tst (IFace b);
9 public delegate string ToStr (string format, IFormatProvider format_provider);
12 public class GenericClass<T> where T : IFormattable
14 T field;
16 public GenericClass (T t)
18 this.field = t;
21 public void Method ()
23 ToStr str = new ToStr (field.ToString);
25 Console.WriteLine (str ("x", null));
28 public void Test (T t) { }
33 public class Foo
35 public static void Main (string [] args)
37 GenericClass<int> example = new GenericClass<int> (99);
38 example.Method ();