Table of Contents

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

visitable T

The object being visited.

Type Parameters

T

The type of object being visited. Must inherit from Component and implement IVisitable.