c# constrain generic type to interface code example
Example: c# generic return type in interface
public interface IExample
{
int GetInteger();
T GetAnything<T>();
}
public interface IExample
{
int GetInteger();
T GetAnything<T>();
}