Surprisingly the following code fails the Assert:
int? wtf = 0; Assert.IsType>(wtf);
So just out curiosity, how c
int? i = 0; var type = TypedReference.GetTargetType(__makeref(i)); var isNullable = type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);