remove warning
[mono.git] / mcs / class / corlib / System / ObjectDisposedException.cs
old mode 100755 (executable)
new mode 100644 (file)
index 5e73782..f0d872e
 //
 
 using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
 
 namespace System
 {
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class ObjectDisposedException : InvalidOperationException
        {
                // Does not override the HResult from InvalidOperationException
@@ -58,6 +62,13 @@ namespace System
                        msg = message;
                }
 
+#if NET_2_0
+               public ObjectDisposedException (string message, Exception innerException)
+                       : base(message, innerException)
+               {
+               }
+#endif
+
                protected ObjectDisposedException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {