Let's say I have some generic interface IMyInterface<TParameter1, TParameter2>.
Now, if I'm writing another class, generic on it's parameter T:
CustomClass<T> where T : IMyInterface
how should this be done?
(current code won't compile, because IMyInterface is dependent on TParameter, TParameter2).
I assume it should be done like:
CustomClass<T, TParameter1, TParameter2> where T: IMyInterface<TParameter1,
TParameter2>
but I might be wrong, could you advice me please?