From 8d00ab3684a40bed859fd7e8c89c3adb499c8278 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 30 Mar 2019 23:23:02 +1300 Subject: [PATCH] Make JTokenReader constructor with initial path public (#2030) --- Src/Newtonsoft.Json/Linq/JTokenReader.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Src/Newtonsoft.Json/Linq/JTokenReader.cs b/Src/Newtonsoft.Json/Linq/JTokenReader.cs index e0db7579..7a97705c 100644 --- a/Src/Newtonsoft.Json/Linq/JTokenReader.cs +++ b/Src/Newtonsoft.Json/Linq/JTokenReader.cs @@ -54,8 +54,12 @@ namespace Newtonsoft.Json.Linq _root = token; } - // this is used by json.net schema - internal JTokenReader(JToken token, string initialPath) + /// + /// Initializes a new instance of the class. + /// + /// The token to read from. + /// The initial path of the token. It is prepended to the returned . + public JTokenReader(JToken token, string initialPath) : this(token) { _initialPath = initialPath;