Surprisingly the following code fails the Assert:
int? wtf = 0;
Assert.IsType>(wtf);
So just out curiosity, how c
What namespace is Assert in?
The following returns true as you would expect:
int? wtf = 0;
if (typeof(Nullable).IsInstanceOfType(wtf))
{
// Do things
}
Although its worth noting that typeof(Nullable also returns true - this is because this method accepts an object and so gets boxed as a Nullable.