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