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; }
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); }