[WindowsBase] Fix exception type in *ValueSerializer.ConvertFromString with null...
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 18 Sep 2017 19:14:22 +0000 (21:14 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 19 Sep 2017 08:58:58 +0000 (10:58 +0200)
commit8d17a32927dbc31206b15e4e022f02c54d88ee4f
treeb23debaa51d30ede1e114f0474e5c464406e80c9
parent8efc784bd99a6bc2519afedd5eef985b2dab0eb7
[WindowsBase] Fix exception type in *ValueSerializer.ConvertFromString with null parameter

ArgumentNullException was introduced by https://github.com/mono/mono/pull/5593
but it should be NotSupportedException instead to match with Windows .NET.

Similar change to what was noticed during review of https://github.com/mono/mono/pull/5343#discussion_r132166426.
mcs/class/WindowsBase/System.Windows.Converters/Int32RectValueSerializer.cs
mcs/class/WindowsBase/System.Windows.Converters/PointValueSerializer.cs
mcs/class/WindowsBase/System.Windows.Converters/RectValueSerializer.cs
mcs/class/WindowsBase/System.Windows.Converters/SizeValueSerializer.cs
mcs/class/WindowsBase/System.Windows.Converters/VectorValueSerializer.cs
mcs/class/WindowsBase/Test/System.Windows/Int32RectValueSerializerTest.cs
mcs/class/WindowsBase/Test/System.Windows/PointValueSerializerTest.cs
mcs/class/WindowsBase/Test/System.Windows/RectValueSerializerTest.cs
mcs/class/WindowsBase/Test/System.Windows/SizeValueSerializerTest.cs
mcs/class/WindowsBase/Test/System.Windows/VectorValueSerializerTest.cs