public void WalkWith(PathSegmentHandler handler) { foreach (ODataPathSegment segment in this.segments) { segment.HandleWith(handler); } }
public void WalkWith(PathSegmentHandler handler) { int segmentsCount = this.segments.Count; for (var index = 0; index < segmentsCount; index++) { ODataPathSegment segment = this.segments[index]; segment.HandleWith(handler); } }
/// <summary> /// Handle a <see cref="PropertySegment"/> using an instance of <see cref="PathSegmentHandler"/>. /// </summary> /// <param name="handler">An implementation of the handler interface.</param> /// <exception cref="System.ArgumentNullException">Throws if the input handler is null.</exception> public override void HandleWith(PathSegmentHandler handler) { ExceptionUtils.CheckArgumentNotNull(handler, "handler"); handler.Handle(this); }
/// <summary> /// Handle a <see cref="ODataPathSegment"/> using an implementation of a <see cref="PathSegmentHandler"/>. /// </summary> /// <param name="handler">An implementation of the handler interface.</param> public abstract void HandleWith(PathSegmentHandler handler);