There is a class:
public class Resource<T> : IGame where T : Component { And for example, we use it as a type in some kind of interface:
public interface IBuildResource { Resource<Component> GetPath(List<Resource<Component>> RefList); } Is it acceptable practice to write <Resource<Component>> instead of <Resource<T>> and, accordingly, make the interface itself generic?
Or, for example, in the class functions implementing this interface, write:
class BuildComponent<T> : BaseCls, IBuildResource { public Resource<Component> GetPath(List<Resource<Component>> resList) { Resource<Component> resReference = null; . . . return resReference; }