✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public abstract class RepoFactory
{
public TRepo Create
() where TRepo : IRepository, new()
=> new TRepo();
}
Головне обмеження такого підходу: