remove warning
[mono.git] / mcs / class / corlib / System / DataMisalignedException.cs
index 9d9f95cc4ca85feef1bc07431745b2d5dcd6442e..2df0a6e8f9c881aa9c0da1b86e20901675232672 100644 (file)
 //
 
 using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
 
 #if NET_2_0
 
 namespace System
 {
        [Serializable]
-       public class DataMisalignedException : SystemException
+#if NET_2_0
+       [ComVisible (true)]
+#endif
+       public sealed class DataMisalignedException : SystemException
        {
                const int Result = unchecked ((int)0x80131541);
 
@@ -55,10 +59,12 @@ namespace System
                        HResult = Result;
                }
 
+               /*
                protected DataMisalignedException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
+               */
        }
 }