Merge pull request #1072 from esdrubal/bug19862
[mono.git] / mcs / class / corlib / System.Threading / ThreadAbortException.cs
index 3960a6abdf033018fb0db6303a728abe78a644c4..19e5cba30bf1b16a617f60ddc5a35654399451c2 100644 (file)
 
 using System.Runtime.CompilerServices;
 using System.Runtime.Serialization;
-
-#if NET_2_0
 using System.Runtime.InteropServices;
-#endif
 
 namespace System.Threading
 {
        [Serializable]
-#if NET_2_0
        [ComVisible (true)]
-#endif
        public sealed class ThreadAbortException : SystemException
        {
                private ThreadAbortException () : base ("Thread was being aborted")
@@ -54,10 +49,12 @@ namespace System.Threading
                {
                }
 
+#if !NET_2_1
                public object ExceptionState {
                        get {
                                return Thread.CurrentThread.GetAbortExceptionState ();
                        }
                }
+#endif
        }
 }