fix the System.Json build
authorJb Evain <jbevain@gmail.com>
Wed, 11 Aug 2010 08:42:00 +0000 (10:42 +0200)
committerJb Evain <jbevain@gmail.com>
Wed, 11 Aug 2010 08:43:49 +0000 (10:43 +0200)
mcs/class/System.Json/System.Json/JsonArray.cs

index a68877cab67335a2ee8264f93c62566e43f6ee77..0de6c24c76a752bf1227cec01f35f3eda36398b8 100644 (file)
@@ -103,7 +103,7 @@ namespace System.Json
                        if (item == null)
                                throw new ArgumentNullException ("item");
                        foreach (JsonValue v in this)
-                               if (item == v)
+                               if (object.Equals (item, v))
                                        return true;
                        return false;
                }
@@ -123,7 +123,7 @@ namespace System.Json
                                throw new ArgumentNullException ("item");
                        int idx = 0;
                        foreach (JsonValue v in this) {
-                               if (item == v)
+                               if (object.Equals (item, v))
                                        return idx;
                                idx++;
                        }