[System] Use GZipStream from corefx
[mono-project.git] / mono / tests / bug-325283.2.cs
blob292b2c93a1dd6c17b672c44b6104b97ea0a56a31
1 using System;
3 public interface IFoo
5 void Tst();
8 public class Foo : IFoo
10 public void Tst ()
15 public abstract class BusinessBase<TYPE> where TYPE : BusinessBase<TYPE>, new ()
17 public static void Load<KEY> (KEY id)
19 TYPE instance = new TYPE ();
20 instance = instance.DataSelect<KEY> (id);
23 protected abstract TYPE DataSelect<KEY> (KEY id);
26 public class Page : BusinessBase<Page>
28 protected override Page DataSelect<Guid> (Guid k)
30 return new Page ();
33 public static void Test<T> (T t) where T : IFoo
35 t.Tst();
39 class D
41 static void Main ()
43 Page.Load<Guid> (new Guid ());
44 Page.Test<Foo> (new Foo ());