Hi Would like to know the use case for the generic interface taking interface as an generic parameter . What can it be used for and what it can solve. I am not able to think of use cases to have interface as an generic parameter rather then the class object.
For Example
public interface IProvideA<T>
{
T GetAVal(string val);
}
Now created a generic type which takes interface as generic parameter.
public interface IProvideAlpha<T> where T:IProvideA
{
T GetAlphaVal(string val);
}
Now if i implement a class which is using the interface taking interface as Generic parameter
public class ImplementProvideAlpha<T>:IProvideAlpha<IProvideA<T>> where T:class
{
}