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