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")
{
}
+#if !NET_2_1
public object ExceptionState {
get {
- return Thread.CurrentThread.abort_state;
+ return Thread.CurrentThread.GetAbortExceptionState ();
}
}
+#endif
}
}