Make maxStackSize behavior compatible with MS.
[mono.git] / mcs / class / System.Xaml / System.Xaml / XamlObjectReaderException.cs
index 0bad880d68deecb2e0b1f408568315ae16db8888..89c64fe1adc83fedab9a497f348976f0af97467d 100644 (file)
@@ -27,7 +27,9 @@ using System.Runtime.Serialization;
 
 namespace System.Xaml
 {
+#if !NET_2_1
        [Serializable]
+#endif
        public class XamlObjectReaderException : XamlException
        {
                public XamlObjectReaderException ()
@@ -45,9 +47,11 @@ namespace System.Xaml
                {
                }
 
+#if !NET_2_1
                protected XamlObjectReaderException (SerializationInfo info, StreamingContext context)
                        : base (info, context)
                {
                }
+#endif
        }
 }