Make JTokenReader constructor with initial path public (#2030)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user