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