//
using System.Runtime.CompilerServices;
+using System.Runtime.Serialization;
+using System.Runtime.InteropServices;
namespace System.Threading
{
[Serializable]
+ [ComVisible (true)]
public sealed class ThreadAbortException : SystemException
{
private ThreadAbortException () : base ("Thread was being aborted")
HResult = unchecked ((int) 0x80131530);
}
+ private ThreadAbortException (SerializationInfo info, StreamingContext sc) : base (info, sc)
+ {
+ }
+
+#if !NET_2_1
public object ExceptionState {
get {
- return Thread.CurrentThread.abort_state;
+ return Thread.CurrentThread.GetAbortExceptionState ();
}
}
+#endif
}
}