How to replace the java wildcard in c#?

Rewriting code from java to .net c# are faced with the problem of transfer classes with a wildcard. There are two classes

public abstract class Client<t extends connection<?>>
public class Connection<t extends client<?>></t></t>

I thought you can do like this

public abstract class Client<t> where Connection<u></u></t>

but it turned out that even that doesn't work

public abstract class Client<t, u> where Connection<t, u>
public abstract class Connection<t, u> where Client<t, u></t></t></t></t>

so how do you get out of the situation ? And whether it is necessary to bathe ;) thank you
July 8th 19 at 15:35
1 answer
July 8th 19 at 15:37
Not all wild cards are from Java can be migrated to C#, were already somewhere (on the toaster) question about it

Find more questions by tags .NETJava