diff options
Diffstat (limited to 'src/mscorlib/shared/System/SystemException.cs')
-rw-r--r-- | src/mscorlib/shared/System/SystemException.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mscorlib/shared/System/SystemException.cs b/src/mscorlib/shared/System/SystemException.cs index f4779a2cd4..d5bcde7efc 100644 --- a/src/mscorlib/shared/System/SystemException.cs +++ b/src/mscorlib/shared/System/SystemException.cs @@ -6,7 +6,6 @@ using System.Runtime.Serialization; namespace System { - [Serializable] public class SystemException : Exception { public SystemException() @@ -27,6 +26,9 @@ namespace System HResult = __HResults.COR_E_SYSTEM; } - protected SystemException(SerializationInfo info, StreamingContext context) : base(info, context) { } + protected SystemException(SerializationInfo info, StreamingContext context) : base(info, context) + { + throw new PlatformNotSupportedException(); + } } } |