+10
-0
lines changedFilter options
+10
-0
lines changed Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1
+
2010-07-27 Andreia Gaita <avidigal@novell.com>
2
+
3
+
* JsonSerializationReader.cs: Add Char type to the switch. Reads the
4
+
content as a string and validates its length
5
+
1
6
2010-07-27 Andreia Gaita <avidigal@novell.com>
2
7
3
8
* JsonSerializationReader.cs, JsonSerializationWriter.cs:
Original file line number Diff line number Diff line change
@@ -86,6 +86,11 @@ public object ReadObject (Type type)
86
86
}
87
87
else
88
88
return reader.ReadElementContentAsString ();
89
+
case TypeCode.Char:
90
+
var c = reader.ReadElementContentAsString ();
91
+
if (c.Length > 1)
92
+
throw new XmlException ("Invalid JSON char");
93
+
return Char.Parse(c);
89
94
case TypeCode.Single:
90
95
return reader.ReadElementContentAsFloat ();
91
96
case TypeCode.Double:
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4