Merge pull request #439 from mono-soc-2012/garyb/iconfix
[mono.git] / mcs / class / System / System.IO / InvalidDataException.cs
index e64d90c3f956e26e26175ed63d1e0e3db6167689..c4c2368d82f52cd383b1b6bb72aba86741a6ce39 100644 (file)
@@ -5,18 +5,16 @@
 //   Christopher James Lahey <clahey@ximian.com>
 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
 //
-// (C) 2004 Novell, Inc.  http://www.novell.com
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
-
 using System.Globalization;
 using System.Runtime.Serialization;
 
 namespace System.IO
 {
        [Serializable]
-       public class InvalidDataException : SystemException
+       public sealed class InvalidDataException : SystemException
        {
                const int Result = unchecked ((int)0x80131503);
 
@@ -39,11 +37,10 @@ namespace System.IO
                        HResult = Result;
                }
 
-               protected InvalidDataException (SerializationInfo info, StreamingContext context)
+               private InvalidDataException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
        }
 }
 
-#endif