public void TryGetValue() { int value; Nullable <int> n = 2; Nullable <int> n0 = null; Assert.True(n.TryGetValue(out value)); Assert.Equal(2, value); Assert.False(n0.TryGetValue(out value)); Assert.Equal(default(int), value); }