* Binding.cs: When converting the data also try with the destination
type typeconverter. This indirectly adds support for Nullable types
in our databinding layer.
svn path=/trunk/mcs/; revision=120947
if (converter != null && converter.CanConvertTo (data_type))
return converter.ConvertTo (data, data_type);
+ converter = TypeDescriptor.GetConverter (data_type);
+ if (converter != null && converter.CanConvertFrom (data.GetType()))
+ return converter.ConvertFrom (data);
+
if (data is IConvertible) {
object res = Convert.ChangeType (data, data_type);
if (data_type.IsInstanceOfType (res))
+2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
+
+ * Binding.cs: When converting the data also try with the destination
+ type typeconverter. This indirectly adds support for Nullable types
+ in our databinding layer.
+
2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: When cell editing is finished focus back the