8 public class Foo
: IFoo
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
)
33 public static void Test
<T
> (T t
) where T
: IFoo
43 Page
.Load
<Guid
> (new Guid ());
44 Page
.Test
<Foo
> (new Foo ());