Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Newtonsoft.Json/JsonReader.cs')
-rw-r--r--Src/Newtonsoft.Json/JsonReader.cs19
1 files changed, 4 insertions, 15 deletions
diff --git a/Src/Newtonsoft.Json/JsonReader.cs b/Src/Newtonsoft.Json/JsonReader.cs
index 8478c8c..6d80c6e 100644
--- a/Src/Newtonsoft.Json/JsonReader.cs
+++ b/Src/Newtonsoft.Json/JsonReader.cs
@@ -102,14 +102,8 @@ namespace Newtonsoft.Json
private char _quoteChar;
internal State _currentState;
private JTokenType _currentTypeContext;
- private bool _serializerInArray;
private CultureInfo _culture;
- internal void SetSerializeInArray(bool serializerInArray)
- {
- _serializerInArray = serializerInArray;
- }
-
/// <summary>
/// Gets the current reader state.
/// </summary>
@@ -235,26 +229,26 @@ namespace Newtonsoft.Json
/// <summary>
/// Reads the next JSON token from the stream as a <see cref="Nullable{Int32}"/>.
/// </summary>
- /// <returns>A <see cref="Nullable{Int32}"/>.</returns>
+ /// <returns>A <see cref="Nullable{Int32}"/>. This method will return <c>null</c> at the end of an array.</returns>
public abstract int? ReadAsInt32();
/// <summary>
/// Reads the next JSON token from the stream as a <see cref="T:Byte[]"/>.
/// </summary>
- /// <returns>A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.</returns>
+ /// <returns>A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
public abstract byte[] ReadAsBytes();
/// <summary>
/// Reads the next JSON token from the stream as a <see cref="Nullable{Decimal}"/>.
/// </summary>
- /// <returns>A <see cref="Nullable{Decimal}"/>.</returns>
+ /// <returns>A <see cref="Nullable{Decimal}"/>. This method will return <c>null</c> at the end of an array.</returns>
public abstract decimal? ReadAsDecimal();
#if !NET20
/// <summary>
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTimeOffset}"/>.
/// </summary>
- /// <returns>A <see cref="Nullable{DateTimeOffset}"/>.</returns>
+ /// <returns>A <see cref="Nullable{DateTimeOffset}"/>. This method will return <c>null</c> at the end of an array.</returns>
public abstract DateTimeOffset? ReadAsDateTimeOffset();
#endif
@@ -434,11 +428,6 @@ namespace Newtonsoft.Json
}
}
- internal bool ReaderIsSerializerInArray()
- {
- return (TokenType == JsonToken.EndArray && _serializerInArray);
- }
-
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>