PropertyCollection<TContainer>
The PropertyCollection<TContainer> struct provides enumerable access to all IProperty<TContainer> for a given PropertyBag<TContainer>.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Struct
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
- Implements: IEnumerable<IProperty<T>>, IEnumerable
public readonly struct PropertyCollection<TContainer> : IEnumerable<IProperty<TContainer>>, IEnumerable
Constructors
Constructor | Description |
|---|---|
| PropertyCollection`1(System.Collections.Generic.IEnumerable{Unity.Properties.IProperty{`0}}) | Initializes a new instance of the PropertyCollection<TContainer> struct which wraps the given enumerable. |
| PropertyCollection`1(System.Collections.Generic.List{Unity.Properties.IProperty{`0}}) | Initializes a new instance of the PropertyCollection<TContainer> struct which wraps the given properties list. |
Static Properties
Property | Description |
|---|---|
| Empty | Returns an empty collection of properties. |
Methods
Method | Description |
|---|---|
| GetEnumerator | Returns an enumerator that iterates through the collection. |
Structs
Struct | Description |
|---|---|
| PropertyCollection<TContainer>.Enumerator | An enumerator struct to enumerate all properties for the given TContainer. |