1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
7 partial struct Nullable
<T
>
10 // These are called by the JIT
14 // JIT implementation of box valuetype System.Nullable`1<T>
16 static object? Box (T
? o
)
24 static T
? Unbox (object o
)
31 static T
? UnboxExact (object o
)
35 if (o
.GetType() != typeof (T
))
36 throw new InvalidCastException();