I have the following class:
public class KeyDTO { public T Id { get; set; } }
So far so good, but I want the type parameter <
From C# 8.0 you can now use the where T : notnull generic constraint to specificy T is a non-nullable type.
where T : notnull