Specified CultureInfo when converting to and from strings across Json.NET.

Fixes:
Clone JToken when adding token with a parent to a new token.
This commit is contained in:
JamesNK
2008-03-16 03:04:28 +00:00
parent 010177a27d
commit 3d150fe2c3
32 changed files with 512 additions and 162 deletions
+3 -3
View File
@@ -75,7 +75,7 @@ namespace Newtonsoft.Json.Tests
string json = @"[0,1,2,3,4,5,6,7,8,9]";
JArray a = JArray.Parse(json);
List<int> list = a.Children<int>().ToList();
List<int> list = a.Values<int>().ToList();
List<int> expected = new List<int>() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
@@ -345,7 +345,7 @@ keyword such as type of business.""
{
List<Post> posts = GetPosts();
JObject rss =
JObject rss =
new JObject(
new JProperty("channel",
new JObject(
@@ -549,7 +549,7 @@ keyword such as type of business.""
JObject o = JObject.FromObject(new
{
channel = new
channel = new
{
title = "James Newton-King",
link = "http://james.newtonking.com",