diff options
Diffstat (limited to 'src/mscorlib/src/System/Threading/ThreadInterruptedException.cs')
-rw-r--r-- | src/mscorlib/src/System/Threading/ThreadInterruptedException.cs | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/src/mscorlib/src/System/Threading/ThreadInterruptedException.cs b/src/mscorlib/src/System/Threading/ThreadInterruptedException.cs index 71c09649e2..9122df0d3e 100644 --- a/src/mscorlib/src/System/Threading/ThreadInterruptedException.cs +++ b/src/mscorlib/src/System/Threading/ThreadInterruptedException.cs @@ -12,29 +12,36 @@ ** ** =============================================================================*/ -namespace System.Threading { - using System.Threading; - using System; - using System.Runtime.Serialization; +using System.Threading; +using System; +using System.Runtime.Serialization; + +namespace System.Threading +{ [Serializable] - public class ThreadInterruptedException : SystemException { - public ThreadInterruptedException() - : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted)) { - SetErrorCode(__HResults.COR_E_THREADINTERRUPTED); + public class ThreadInterruptedException : SystemException + { + public ThreadInterruptedException() + : base(GetMessageFromNativeResources(ExceptionMessageKind.ThreadInterrupted)) + { + HResult = __HResults.COR_E_THREADINTERRUPTED; } - - public ThreadInterruptedException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_THREADINTERRUPTED); + + public ThreadInterruptedException(String message) + : base(message) + { + HResult = __HResults.COR_E_THREADINTERRUPTED; } - - public ThreadInterruptedException(String message, Exception innerException) - : base(message, innerException) { - SetErrorCode(__HResults.COR_E_THREADINTERRUPTED); + + public ThreadInterruptedException(String message, Exception innerException) + : base(message, innerException) + { + HResult = __HResults.COR_E_THREADINTERRUPTED; } - protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base (info, context) { + protected ThreadInterruptedException(SerializationInfo info, StreamingContext context) : base(info, context) + { } } } |