Inheritance: IPathSegment
 public override IPathSegment CreatePathSegment(string pathSegmentString)
 {
     PocoPathSegment pathSegment;
     if (pathSegmentString.EndsWith(EnumerableSymbol))
     {
         pathSegment = new PocoPathSegment(pathSegmentString.TrimEnd(EnumerableSymbol.ToArray()), true);
     }
     else
     {
         pathSegment = new PocoPathSegment(pathSegmentString, false);
     }
     return pathSegment;
 }
Beispiel #2
0
        public override IPathSegment CreatePathSegment(string pathSegmentString)
        {
            PocoPathSegment pathSegment;

            if (pathSegmentString.EndsWith(EnumerableSymbol))
            {
                pathSegment = new PocoPathSegment(pathSegmentString.TrimEnd(EnumerableSymbol.ToArray()), true);
            }
            else
            {
                pathSegment = new PocoPathSegment(pathSegmentString, false);
            }
            return(pathSegment);
        }