public override bool Equals(object obj) { if (!(obj is PathEntry)) { return(false); } return(((PathEntry)obj).ActualPath.ToLower() == ActualPath.ToLower()); }
public override IEnumerable <IPathSegment> GetSegements() { var segments = new List <IPathSegment>(); foreach (string segment in ActualPath.Split(SeperatorSymbol.ToCharArray())) { segments.Add(CreatePathSegment(segment)); } return(segments); }
public override IEnumerable <IPathSegment> GetSegements() { var segments = new List <IPathSegment>(); foreach (string segment in ActualPath.Split(NodeSeperatorSymbol.ToCharArray())) { string[] nestedSegments = segment.Split(AttributeSeperatorSymbol.ToCharArray()); if (nestedSegments.Length >= 1) { segments.Add(CreatePathSegment(nestedSegments[0])); } if (nestedSegments.Length >= 2) { segments.Add(CreateAttributePathSegment(nestedSegments[1])); } } return(segments); }
public override IEnumerable <IPathSegment> GetSegements() { return(ActualPath.Split(SeperatorSymbol.ToCharArray()).Select(CreatePathSegment).ToList()); }
public override int GetHashCode() { return(ActualPath.ToLower().GetHashCode()); }