Inheritance: IPathSegment
Example #1
0
 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;
 }
Example #2
0
        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);
        }