I need to wonder what the real purpose of the question is. Is there a method Getto get the value specified keyfrom some store? In this case, I would suggest something like
public T Get<T>(string key)
{
return (T)_storage.GetValue(key);
}
. , , key ( , , , - T, , key).
generics , . switch , Type , , , / , .