I\'m converting some older code to c# 8 and 9 with nullable enabled. I\'ve run into some trouble with generics. Here\'s an example. The older class has an unconstrained type