-Added JsonReader.ReadAsDateTimeOffset

-Fixed losing timezone information when deserializing DateTimeOffsets
This commit is contained in:
JamesNK
2010-09-12 03:39:39 +00:00
parent 11ce71ee8b
commit 235770442a
9 changed files with 245 additions and 30 deletions
+8
View File
@@ -210,6 +210,14 @@ namespace Newtonsoft.Json
/// <returns>A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.</returns>
public abstract byte[] ReadAsBytes();
#if !NET20
/// <summary>
/// Reads the next JSON token from the stream as a <see cref="DateTimeOffset"/>.
/// </summary>
/// <returns>A <see cref="DateTimeOffset"/>.</returns>
public abstract DateTimeOffset ReadAsDateTimeOffset();
#endif
/// <summary>
/// Skips the children of the current token.
/// </summary>