summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/InvalidCastException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/InvalidCastException.cs')
-rw-r--r--src/mscorlib/src/System/InvalidCastException.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mscorlib/src/System/InvalidCastException.cs b/src/mscorlib/src/System/InvalidCastException.cs
index 7003574c68..c2c8ad3fcf 100644
--- a/src/mscorlib/src/System/InvalidCastException.cs
+++ b/src/mscorlib/src/System/InvalidCastException.cs
@@ -15,8 +15,10 @@ namespace System {
using System;
using System.Runtime.Serialization;
-[System.Runtime.InteropServices.ComVisible(true)]
+ [System.Runtime.InteropServices.ComVisible(true)]
+#if FEATURE_SERIALIZATION
[Serializable]
+#endif
public class InvalidCastException : SystemException {
public InvalidCastException()
: base(Environment.GetResourceString("Arg_InvalidCastException")) {