summaryrefslogtreecommitdiff
path: root/src/mscorlib/shared/System/TypeUnloadedException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/shared/System/TypeUnloadedException.cs')
-rw-r--r--src/mscorlib/shared/System/TypeUnloadedException.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mscorlib/shared/System/TypeUnloadedException.cs b/src/mscorlib/shared/System/TypeUnloadedException.cs
index 33e4687772..c7ed71c9cb 100644
--- a/src/mscorlib/shared/System/TypeUnloadedException.cs
+++ b/src/mscorlib/shared/System/TypeUnloadedException.cs
@@ -6,7 +6,6 @@ using System.Runtime.Serialization;
namespace System
{
- [Serializable]
public class TypeUnloadedException : SystemException
{
public TypeUnloadedException()
@@ -26,13 +25,11 @@ namespace System
{
HResult = __HResults.COR_E_TYPEUNLOADED;
}
-
- //
- // This constructor is required for serialization;
- //
+
protected TypeUnloadedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
+ throw new PlatformNotSupportedException();
}
}
}