Код: Выделить всё
public Dictionary type1;
public Dictionary type2;
Код: Выделить всё
public T Get(int ID)
{
// somehow find the correct dictionary and return its value
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... ious-lists
Код: Выделить всё
public Dictionary type1;
public Dictionary type2;
Код: Выделить всё
public T Get(int ID)
{
// somehow find the correct dictionary and return its value
}