blob: b078d28e6a18693bb7cf2bdef045ce1cfc1c0e6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
public abstract class ThingWithOrganizationId
{
public Guid OrganizationId;
}
public class Thing : ThingWithOrganizationId
{
}
public abstract class BaseService<TConstraint>
{
public abstract void Save<T> (T newThing) where T : TConstraint;
}
public class DerivedService:BaseService<Thing>
{
public override void Save<TThing>(TThing newThing)
{
Console.WriteLine (newThing.OrganizationId);
}
static void Main ()
{
}
}
|