Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-04-07 21:31:03 +0300
committerJan Kotas <jkotas@microsoft.com>2017-04-08 01:14:46 +0300
commitbed620293c1e52b0794c34e31be8ae9fc9b6661a (patch)
treecac4f31d8df34755c811e7c89fbcc73ea1854734 /src/System.Private.CoreLib/shared/System/Threading
parent1299625e3595702d7d1e5fd2ad6b490e23e97379 (diff)
Move public ThreadAbortException back to CoreLib (dotnet/coreclr#10801)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Threading')
-rw-r--r--src/System.Private.CoreLib/shared/System/Threading/ThreadAbortException.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/ThreadAbortException.cs b/src/System.Private.CoreLib/shared/System/Threading/ThreadAbortException.cs
new file mode 100644
index 000000000..e693e7192
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/System/Threading/ThreadAbortException.cs
@@ -0,0 +1,36 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*=============================================================================
+**
+**
+**
+** Purpose: An exception class which is thrown into a thread to cause it to
+** abort. This is a special non-catchable exception and results in
+** the thread's death. This is thrown by the VM only and can NOT be
+** thrown by any user thread, and subclassing this is useless.
+**
+**
+=============================================================================*/
+
+using System.Runtime.Serialization;
+
+namespace System.Threading
+{
+ [Serializable]
+ public sealed class ThreadAbortException : SystemException
+ {
+ private ThreadAbortException()
+ {
+ HResult = __HResults.COR_E_THREADABORTED;
+ }
+
+ internal ThreadAbortException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
+
+ public object ExceptionState => null;
+ }
+}