<Compile Include="$(BclSourcesRoot)\System\Threading\SemaphoreFullException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Threading\SynchronizationLockException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Threading\Thread.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Threading\ThreadAbortException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Threading\ThreadInterruptedException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Threading\ThreadPool.cs" />
<Compile Include="$(BclSourcesRoot)\System\Threading\ThreadPriority.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskCanceledException.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskExtensions.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskSchedulerException.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Threading\ThreadAbortException.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Timeout.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\ThreadStaticAttribute.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\TimeoutException.cs"/>
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-//
/*=============================================================================
**
**
**
=============================================================================*/
-using System;
using System.Runtime.Serialization;
-using System.Runtime.CompilerServices;
namespace System.Threading
{
[Serializable]
- internal sealed class ThreadAbortException : SystemException
+ public sealed class ThreadAbortException : SystemException
{
private ThreadAbortException()
- : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadAbort))
{
- SetErrorCode(__HResults.COR_E_THREADABORTED);
+ HResult = __HResults.COR_E_THREADABORTED;
}
- //required for serialization
internal ThreadAbortException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
+
+ public object ExceptionState => null;
}
}