diff options
author | Zoltan Varga <vargaz@gmail.com> | 2018-06-18 10:01:05 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-06-18 10:22:16 +0300 |
commit | d2aaa5450b5481c2392a3a5656d353f28e5e3bbd (patch) | |
tree | 3258859e1bd6146fc951d3d6a3ff4090af5e708d | |
parent | ab816c3efdb1aedb4baa1b8d2fec8ee2f8e15683 (diff) |
Make Nullable<T> partial and ifdef out the type forwarder for mono.
-rw-r--r-- | src/Common/src/CoreLib/System/Nullable.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Common/src/CoreLib/System/Nullable.cs b/src/Common/src/CoreLib/System/Nullable.cs index 73ad6056c2..c9ee43fadb 100644 --- a/src/Common/src/CoreLib/System/Nullable.cs +++ b/src/Common/src/CoreLib/System/Nullable.cs @@ -13,8 +13,10 @@ namespace System // [Serializable] [NonVersionable] // This only applies to field layout +#if !MONO [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] - public struct Nullable<T> where T : struct +#endif + public partial struct Nullable<T> where T : struct { private readonly bool hasValue; // Do not rename (binary serialization) internal T value; // Do not rename (binary serialization) or make readonly (can be mutated in ToString, etc.) |