/*
Copyright 2007-2013 The NGenerics Team
(https://github.com/ngenerics/ngenerics/wiki/Team)
This program is licensed under the GNU Lesser General Public License (LGPL). You should
have received a copy of the license along with the source code. If not, an online copy
of the license can be found at http://www.gnu.org/copyleft/lesser.html.
*/
namespace NGenerics.Patterns.Visitor
{
///
/// An in order implementation of the class.
///
/// The type of objects to be visited.
public sealed class InOrderVisitor : OrderedVisitor
{
#region Construction
/// The visitor.
public InOrderVisitor(IVisitor visitor) : base(visitor) { }
#endregion
#region OrderedVisitor Members
///
/// Visits the object in post order.
///
/// The obj.
public override void VisitPostOrder(T obj)
{
// Do nothing.
}
///
/// Visits the object in pre order.
///
/// The obj.
public override void VisitPreOrder(T obj)
{
// Do nothing.
}
#endregion
}
}