projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc10ac
)
fix the System.Json build
author
Jb Evain
<jbevain@gmail.com>
Wed, 11 Aug 2010 08:42:00 +0000
(10:42 +0200)
committer
Jb Evain
<jbevain@gmail.com>
Wed, 11 Aug 2010 08:43:49 +0000
(10:43 +0200)
mcs/class/System.Json/System.Json/JsonArray.cs
patch
|
blob
|
history
diff --git
a/mcs/class/System.Json/System.Json/JsonArray.cs
b/mcs/class/System.Json/System.Json/JsonArray.cs
index a68877cab67335a2ee8264f93c62566e43f6ee77..0de6c24c76a752bf1227cec01f35f3eda36398b8 100644
(file)
--- a/
mcs/class/System.Json/System.Json/JsonArray.cs
+++ b/
mcs/class/System.Json/System.Json/JsonArray.cs
@@
-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++;
}