2002-06-27 Martin Baulig <martin@gnome.org>
[mono.git] / mcs / class / corlib / System / OverflowException.cs
index 0094bfe323cc93b0c72e57447821f3fc0119acff..61e63e1e3a1ad2179147a46a7d9bcd55c8a2c850 100644 (file)
@@ -3,13 +3,17 @@
 //
 // Author:
 //   Joe Shaw (joe@ximian.com)
+//   Duncan Mak (duncan@ximian.com)
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
 //
 
 using System.Globalization;
+using System.Runtime.Serialization;
+
 namespace System {
 
+       [Serializable]
        public class OverflowException : ArithmeticException {
                // Constructors
                public OverflowException ()
@@ -26,5 +30,10 @@ namespace System {
                        : base (message, inner)
                {
                }
+
+               protected OverflowException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
        }
 }