Author: atsushi
Date: 2008-02-10 07:13:23 -0500 (Sun, 10 Feb 2008)
New Revision: 95368
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
Log:
2008-02-10 Atsushi Enomoto <[EMAIL PROTECTED]>
* Binding.cs : build fix (operator == is not overriden in 1.x. Do
not compare struct with null in 2.0).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
2008-02-10 11:52:15 UTC (rev 95367)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
2008-02-10 12:13:23 UTC (rev 95368)
@@ -401,8 +401,13 @@
void ConnectPropertyChangedEvent ()
{
- if (data_source == null || binding_member_info == null
|| binding_member_info.BindingField.Length == 0)
+#if NET_2_0
+ if (data_source == null || binding_member_info == new
BindingMemberInfo (String.Empty) || binding_member_info.BindingField.Length ==
0)
return;
+#else
+ if (data_source == null || binding_member_info.Equals
(new BindingMemberInfo (String.Empty)) ||
binding_member_info.BindingField.Length == 0)
+ return;
+#endif
string event_name = binding_member_info.BindingField +
"Changed";
Type event_handler_type = typeof (EventHandler);
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-10 11:52:15 UTC (rev 95367)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-10 12:13:23 UTC (rev 95368)
@@ -1,3 +1,8 @@
+2008-02-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * Binding.cs : build fix (operator == is not overriden in 1.x. Do
+ not compare struct with null in 2.0).
+
2008-02-10 Luke Page <[EMAIL PROTECTED]>
* MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar,
PasswordChar
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches