# VisitCollection<TContainer, TCollection, TElement>(Property<TContainer, TCollection>, ref TContainer, ref TCollection)

> Called when visiting any non-specialized collection property.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## VisitCollection\<T, U, V>(Property\<T, T>, T, T)

```csharp
protected virtual void VisitCollection<TContainer, TCollection, TElement>(Property<TContainer, TCollection> property, ref TContainer container, ref TCollection value) where TCollection : ICollection<TElement>
```

### Parameters

**** (\[Property\<T, T>]\(/engine/6000.6/script-reference/unity/properties/property2)): The property providing access to the collection.**** (T): The container being visited.**** (T): The collection being visited.

### Remarks

When visiting a specialized collection the appropriate method will be called.

* [PropertyVisitor.VisitList](/engine/6000.6/script-reference/unity/properties/propertyvisitor/visitlist.md)
