-Added ReadRootValueAsArray, DateTimeKindHandling properties to BsonReader

-Included BSON is .NET 2.0, Silverlight and Compact Framework builds
This commit is contained in:
JamesNK
2010-01-22 22:17:56 +00:00
parent 621916f5a6
commit be6ed7daaa
9 changed files with 117 additions and 13 deletions
@@ -147,11 +147,12 @@ namespace Newtonsoft.Json.Tests.Bson
s1.Open = true;
s1.product.Add(new Product
{
ExpiryDate = new DateTime(2000, 9, 28, 3, 59, 58, DateTimeKind.Utc),
ExpiryDate = new DateTime(2000, 9, 28, 3, 59, 58, DateTimeKind.Local),
Name = "BSON!",
Price = -0.1m,
Sizes = new [] { "First", "Second" }
});
s1.Establised = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Local);
JsonSerializer serializer = new JsonSerializer();
serializer.Serialize(writer, s1);