Make JTokenReader constructor with initial path public (#2030)

This commit is contained in:
James Newton-King
2019-03-30 23:23:02 +13:00
committed by GitHub
parent 9977965ec3
commit 8d00ab3684
+6 -2
View File
@@ -54,8 +54,12 @@ namespace Newtonsoft.Json.Linq
_root = token;
}
// this is used by json.net schema
internal JTokenReader(JToken token, string initialPath)
/// <summary>
/// Initializes a new instance of the <see cref="JTokenReader"/> class.
/// </summary>
/// <param name="token">The token to read from.</param>
/// <param name="initialPath">The initial path of the token. It is prepended to the returned <see cref="Path"/>.</param>
public JTokenReader(JToken token, string initialPath)
: this(token)
{
_initialPath = initialPath;