Beispiel #1
0
 public void WalkWith(PathSegmentHandler handler)
 {
     foreach (ODataPathSegment segment in this.segments)
     {
         segment.HandleWith(handler);
     }
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 /// <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);