Esempio n. 1
0
        private static ControlResultDataMarker BuildDataMarker(JToken jToKen, int dataMarkerLength = int.MaxValue)
        {
            var dataMarker = new ControlResultDataMarker(0, jToKen.Path,
                                                         jToKen.ToString(Formatting.Indented).TakeS(dataMarkerLength));
            var lineInfo = jToKen as IJsonLineInfo;

            dataMarker.LineNumber = lineInfo.LineNumber;
            return(dataMarker);
        }
Esempio n. 2
0
        private static ControlResultDataMarker BuildDataMarker(string JsonPath, int dataMarkerLength = int.MaxValue)
        {
            var dataMarker = new ControlResultDataMarker(-1, JsonPath, "");

            return(dataMarker);
        }