Make JTokenReader constructor with initial path public (#2030)
This commit is contained in:
@@ -54,8 +54,12 @@ namespace Newtonsoft.Json.Linq
|
|||||||
_root = token;
|
_root = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is used by json.net schema
|
/// <summary>
|
||||||
internal JTokenReader(JToken token, string initialPath)
|
/// 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)
|
: this(token)
|
||||||
{
|
{
|
||||||
_initialPath = initialPath;
|
_initialPath = initialPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user