Interface ICollectionPropertyVisitor
Interface for receiving strongly typed property callbacks for collections.
Namespace: Unity.Properties
Syntax
public interface ICollectionPropertyVisitor
Methods
Visit<TContainer, TCollection, TElement>(Property<TContainer, TCollection>, ref TContainer, ref TCollection)
Implement this method to accept visitation for a specialized collection property.
Declaration
void Visit<TContainer, TCollection, TElement>(Property<TContainer, TCollection> property, ref TContainer container, ref TCollection collection)
where TCollection : ICollection<TElement>
Parameters
| Type | Name | Description |
|---|---|---|
| Property<TContainer, TCollection> | property | The property being visited. |
| TContainer | container | The container being visited. |
| TCollection | collection | The collection value. |
Type Parameters
| Name | Description |
|---|---|
| TContainer | The container type. |
| TCollection | The collection value type. |
| TElement | The collection element type. |
Remarks
This method is invoked by ICollectionPropertyAccept<TCollection>