ValueSerializer.GetConvertToException Method (Object, Type)
Returns an exception to throw when a conversion cannot be performed.
Assembly: System.Xaml (in System.Xaml.dll)
The object that could not be converted.
A type that represents the type the conversion was trying to convert to.
The actual throw keyword is not invoked by this method, therefore the typical usage is throw GetConvertToException (with value parameter provided).
Available since 3.0