Inheritance: IPathSegment
示例#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;
 }
示例#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);
        }