IndexedCollectionPropertyBag<TList, TElement>
An IPropertyBag<TContainer> implementation for a generic collection of elements which can be accessed by index. This is based on the IList_1 interface.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Class
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
- Inherits from: PropertyBag<T>
- Implements: IListPropertyBag<T, T>, ICollectionPropertyBag<T, T>, IPropertyBag<T>, IPropertyBag, ICollectionPropertyBagAccept<T>, IListPropertyBagAccept<T>, IListPropertyAccept<T>, IIndexedProperties<T>
public class IndexedCollectionPropertyBag<TList, TElement> : PropertyBag<TList>, IListPropertyBag<TList, TElement>, ICollectionPropertyBag<TList, TElement>, IPropertyBag<TList>, IPropertyBag, ICollectionPropertyBagAccept<TList>, IListPropertyBagAccept<TList>, IListPropertyAccept<TList>, IIndexedProperties<TList> where TList : IList<TElement>
Methods
Method | Description |
|---|---|
| InstantiateWithCount | Implement this method to provide custom type instantiation with a count value for the container type. |
| TryGetProperty | Gets the property associated with the specified index. |