Skip to content

Commit

Permalink
Make JTokenReader constructor with initial path public (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Mar 30, 2019
1 parent 9977965 commit 8d00ab3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Src/Newtonsoft.Json/Linq/JTokenReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ public JTokenReader(JToken token)
_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;
Expand Down

0 comments on commit 8d00ab3

Please sign in to comment.