Where T: <interface>, where T: class gives cs0452
I have
public static void SecureTcpRpc<InterfaceType>(string uri,
Action<InterfaceType> action)
where InterfaceType : class;
Then I use it here
private static AuthorizedActionResult
RunChannelAction<T>(IEnumerable<string> uris,
Func<T, AuthorizedActionResult> actionFunc)
where T : IPingable
{
WcfClient.SecureTcpRpc<T>....
The compiler does not like that I limited T to IPingable. I do not understand why this is objective. IPingable is a reference type, so it complies with the restriction on the SecureTpcRpc method. But the compiler says: "T must be a reference type"
+3