remove warning
[mono.git] / mcs / class / corlib / System / UnhandledExceptionEventArgs.cs
index 2e18f89df7ffcae4326b8a358338d6445be89042..a2048d584cca0a18e6d606143fa6511dc0fc0202 100644 (file)
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+using System.Runtime.InteropServices;
+
 namespace System 
 {
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class UnhandledExceptionEventArgs : EventArgs
        {
                private object exception;
@@ -45,12 +53,18 @@ namespace System
                }
 
                public object ExceptionObject {
+#if NET_2_0
+               [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
                        get {
                                return exception;
                        }
                }
 
                public bool IsTerminating {
+#if NET_2_0
+               [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
                        get {
                                return m_isTerminating;
                        }