Skip to content

Instantly share code, notes, and snippets.

View jsanjuan2016's full-sized avatar

jsanjuan jsanjuan2016

View GitHub Profile
services.AddTransient<IShape<Rectangle>, Rectangle>();
services.AddTransient<IShape<Circle>, Circle>();
public class Rectangle : IShape<Rectangle>
{
public Rectangle() { }
}
public interface IShape<T> where T : class {}