[WindowsBase] Fix exception type in *ValueSerializer.ConvertFromString with null...
[mono.git] / mcs / class / WindowsBase / System.Windows.Converters / RectValueSerializer.cs
index 24b4c3d60bc97f5b52cd0abba15acd759eaaffab..623c0d688bb1ad969dabf21ff18341ca01456f34 100644 (file)
@@ -42,7 +42,7 @@ namespace System.Windows.Converters {
                public override object ConvertFromString (string value, IValueSerializerContext context)
                {
                        if (value == null)
-                               throw new ArgumentNullException ("value");
+                               throw new NotSupportedException ("value != null");
                        return Rect.Parse (value);
                }