remove warning
[mono.git] / mcs / class / corlib / System / UnhandledExceptionEventArgs.cs
old mode 100755 (executable)
new mode 100644 (file)
index 2e18f89..a2048d5
 // 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;
                        }