I\'m missing a trick here I think and can\'t believe I\'ve never done this before. However, how can I cast a generic type using the as keyword?
[Serializable] pu
... where T : class, ISessionManager
In case you want to use the where keyword on methods here is an example that also uses generics
keyword
public void store(T value, String key) { Session[key] = value; } public T retrieve(String key) where T:class { return Session[key] as T ; }