Interface
- Namespace
- CoreFramework
Represents a visitor in the Visitor design pattern. Provides a mechanism for defining new operations on objects/> without changing their structure or class hierarchy.
public interface IVisitor
- Extension Methods
Methods
Visit<T>(T)
Visits an object of type T to perform an operation defined by the visitor.
void Visit<T>(T visitable) where T : Component, IVisitable
Parameters
visitableTThe object being visited.
Type Parameters
TThe type of object being visited. Must inherit from Component and implement IVisitable.