[WindowsBase] Fix exception type in *ValueSerializer.ConvertFromString with null...
[mono.git] / mcs / class / WindowsBase / System.Windows.Converters / VectorValueSerializer.cs
index 376e4dc21ce77549e45bfb427bee97ff7726ab24..6ec7ae6f5899c86be5ff97dd25a8c39516fb61fb 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 Vector.Parse (value);
                }