2007-11-14 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System / InvalidProgramException.cs
index 12754b52c1473793b816b48de0cad9019e97ef7e..faf33db485440376dc76ccd36993667a48e1a4bf 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
+
 namespace System
 {
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class InvalidProgramException : SystemException
        {
                // Constructors
@@ -50,5 +56,9 @@ namespace System
                        : base (message, inner)
                {
                }
+
+               internal InvalidProgramException (SerializationInfo info, StreamingContext context) : base(info, context)
+               {
+               }
        }
 }