[WindowsBase] Fix exception type in *ValueSerializer.ConvertFromString with null...
[mono.git] / mcs / class / WindowsBase / System.Windows.Converters / Int32RectValueSerializer.cs
index 0f59ec563aad5945c5548a74b8bda45780696334..acaa7b2852a9a32556a45e55886f5e1a426795c3 100644 (file)
@@ -43,7 +43,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 Int32Rect.Parse (value);
                }