public override IPathSegment CreatePathSegment(string pathSegmentString) { JsonPathSegment pathSegment; if (pathSegmentString.EndsWith(EnumerableSymbol)) { pathSegment = new JsonPathSegment(pathSegmentString.TrimEnd(EnumerableSymbol.ToArray()), true); } else { pathSegment = new JsonPathSegment(pathSegmentString, false); } return pathSegment; }
public override IPathSegment CreatePathSegment(string pathSegmentString) { JsonPathSegment pathSegment; if (pathSegmentString.EndsWith(EnumerableSymbol)) { pathSegment = new JsonPathSegment(pathSegmentString.TrimEnd(EnumerableSymbol.ToArray()), true); } else { pathSegment = new JsonPathSegment(pathSegmentString, false); } return(pathSegment); }