Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JTokenReader constructor with initial path public #2030

Merged
merged 1 commit into from
Mar 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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