Interface IVisitorAcceptor
- Namespace
- DbExport
- Assembly
- DbExport.Api.dll
Defines an interface for accepting visitors, allowing external operations to be performed on implementing classes without modifying their structure. This is a key component of the Visitor design pattern, enabling separation of concerns and enhancing flexibility in extending functionality.
public interface IVisitorAcceptor
Methods
AcceptVisitor(IVisitor)
Accepts a visitor, allowing it to perform operations on the implementing class. The visitor will typically have specific methods for handling different types of elements in the object structure.
void AcceptVisitor(IVisitor visitor)
Parameters
visitorIVisitorThe visitor instance that will perform operations on the implementing class.