Reputation: 1711
I want to be able to do this.
MyInterface interface = new ServiceProxyHelper<ProxyType>();
Here's the object structure
MyTypeThatImplementsMyInterface : MyInterface
Will this work?
public class ProxyType : MyInterface {}
public class ServiceProxyHelper<ProxyType> : IDisposable, MyInterface {}
Upvotes: 1
Views: 514
Reputation: 16798
I think this is what you're trying to do:
public class ServiceProxyHelper<T> where T : MyInterface { ... }
Upvotes: 3