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) { XmlPathSegment xmlPathSegment; xmlPathSegment = pathSegmentString.EndsWith(EnumerableSymbol) ? new XmlPathSegment(pathSegmentString.TrimEnd(EnumerableSymbol.ToArray()), true) : new XmlPathSegment(pathSegmentString, false); return(xmlPathSegment); }