public class _Base_Client<T> : System.ServiceModel.ClientBase<T>
It complains that The type 'T' must be a reference type in order to use it as parameter 'TChannel'
T is a reference to an interface.
Here is the line I wish to change to use the new base class
public class EchoServiceClient :
System.ServiceModel.ClientBase<IEchoService>, IEchoService
How can I fix this? thanks
Change:
To:
The constraints in your class must be at least as strict as the constraints defined in its base class (
ClientBase). To wit, here is the declaration ofClientBase:Notice the
classconstraint.