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