diff options
Diffstat (limited to 'src/mscorlib/shared/System/OverflowException.cs')
-rw-r--r-- | src/mscorlib/shared/System/OverflowException.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mscorlib/shared/System/OverflowException.cs b/src/mscorlib/shared/System/OverflowException.cs index e28c688dd6..4052e41a18 100644 --- a/src/mscorlib/shared/System/OverflowException.cs +++ b/src/mscorlib/shared/System/OverflowException.cs @@ -15,7 +15,6 @@ using System.Runtime.Serialization; namespace System { - [Serializable] public class OverflowException : ArithmeticException { public OverflowException() @@ -36,6 +35,9 @@ namespace System HResult = __HResults.COR_E_OVERFLOW; } - protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context) { } + protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context) + { + throw new PlatformNotSupportedException(); + } } } |