-Improved large JArray performance

-Improved JTokenReader performance
This commit is contained in:
James Newton-King
2016-03-28 14:14:07 +13:00
parent 029e36e7e4
commit 3a412e5ab2
10 changed files with 117 additions and 43 deletions
+5
View File
@@ -235,6 +235,11 @@ namespace Newtonsoft.Json.Linq
throw new JsonException("Cannot add or remove items from {0}.".FormatWith(CultureInfo.InvariantCulture, typeof(JProperty)));
}
internal override int IndexOfItem(JToken item)
{
return _content.IndexOf(item);
}
internal override void InsertItem(int index, JToken item, bool skipParentCheck)
{
// don't add comments to JProperty