-Added protected JsonReader.SetToken method with option not to update position array index

This commit is contained in:
James Newton-King
2017-03-14 20:30:03 +13:00
parent bed740f76e
commit 7fff485208
2 changed files with 24 additions and 18 deletions
+7 -1
View File
@@ -965,7 +965,13 @@ namespace Newtonsoft.Json
SetToken(newToken, value, true);
}
internal void SetToken(JsonToken newToken, object value, bool updateIndex)
/// <summary>
/// Sets the current token and value.
/// </summary>
/// <param name="newToken">The new token.</param>
/// <param name="value">The value.</param>
/// <param name="updateIndex">A flag indicating whether the position index inside an array should be updated.</param>
protected void SetToken(JsonToken newToken, object value, bool updateIndex)
{
_tokenType = newToken;
_value = value;