-Added ReadRootValueAsArray, DateTimeKindHandling properties to BsonReader
-Included BSON is .NET 2.0, Silverlight and Compact Framework builds
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user