Class ConcreteTypeVisitor
Base class to implement a visitor responsible for getting an object's concrete type as a generic.
Inherited Members
Namespace: Unity.Properties
Syntax
public abstract class ConcreteTypeVisitor : IPropertyBagVisitor
Remarks
It is required that the visited object is a container type with a property bag.
Methods
VisitContainer<TContainer>(ref TContainer)
Implement this method to receive the strongly typed callback for a given container.
Declaration
protected abstract void VisitContainer<TContainer>(ref TContainer container)
Parameters
Type | Name | Description |
---|---|---|
TContainer | container | The reference to the container. |
Type Parameters
Name | Description |
---|---|
TContainer | The container type. |
Explicit Interface Implementations
IPropertyBagVisitor.Visit<TContainer>(IPropertyBag<TContainer>, ref TContainer)
Implement this method to accept visitation for a property bag and container.
Declaration
void IPropertyBagVisitor.Visit<TContainer>(IPropertyBag<TContainer> properties, ref TContainer container)
Parameters
Type | Name | Description |
---|---|---|
IPropertyBag<TContainer> | properties | The properties of the container. |
TContainer | container | The container being visited. |
Type Parameters
Name | Description |
---|---|
TContainer | The container type. |
Implements
Remarks
This method is invoked by Accept(IPropertyBagVisitor, ref TContainer).