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
you can go even further
where T : class, ISessionManager, new()
this will force non abstract class with parameterless ctor to be handed in as T