@Fildor The same thing happens if you just use a plain int. It seems to me that the compiler should issue a warning for this case because it is basically ignoring the ? on TKey? field.
int
?
TKey? field