public DescendentsWalker(TreeWalkPriority priority, VisitedCallback <T> callback, T data) : base(priority) { _callback = callback; _data = data; }
//------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors /// <summary> /// Creates an instances of PrePostDescendentsWalker. /// </summary> /// <param name="priority">specifies which tree should be visited first</param> /// <param name="preCallback">the callback to be called before a node's children are visited</param> /// <param name="postCallback">the callback to be called after a node's children are visited</param> /// <param name="data">the data passed to each callback</param> public PrePostDescendentsWalker(TreeWalkPriority priority, VisitedCallback <T> preCallback, VisitedCallback <T> postCallback, T data) : base(priority, preCallback, data) { _postCallback = postCallback; }
public DescendentsWalker(TreeWalkPriority priority, VisitedCallback <T> callback) : this(priority, callback, default(T)) { // Forwarding }