diff options
Diffstat (limited to 'src/mscorlib/shared/System/TypeAccessException.cs')
-rw-r--r-- | src/mscorlib/shared/System/TypeAccessException.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mscorlib/shared/System/TypeAccessException.cs b/src/mscorlib/shared/System/TypeAccessException.cs index 32afbdfeb8..302dcb1ac1 100644 --- a/src/mscorlib/shared/System/TypeAccessException.cs +++ b/src/mscorlib/shared/System/TypeAccessException.cs @@ -8,7 +8,6 @@ namespace System { // TypeAccessException derives from TypeLoadException rather than MemberAccessException because in // pre-v4 releases of the runtime TypeLoadException was used in lieu of a TypeAccessException. - [Serializable] public class TypeAccessException : TypeLoadException { public TypeAccessException() @@ -29,6 +28,9 @@ namespace System HResult = __HResults.COR_E_TYPEACCESS; } - protected TypeAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { } + protected TypeAccessException(SerializationInfo info, StreamingContext context) : base(info, context) + { + throw new PlatformNotSupportedException(); + } } } |