Re: Вопрос по generic-ам
От: ksg71 Германия  
Дата: 11.05.07 07:53
Оценка:
Здравствуйте, iukpshl, Вы писали:

public class DB
{
}

public class UserDB : DB
{
}

public class SingleDB<T> : Singleton<T> where T : DB, new()
{
}
public class SingleUserDB : SingleDB<UserDB>
{
}

SingleUserDB.Instance.SomeMethod();

.
Das Reich der Freiheit beginnt da, wo die Arbeit aufhört. (c) Karl Marx
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.