文档

Unity Engine

Unity Engine

PropertyCollection<TContainer>

The PropertyCollection<TContainer> struct provides enumerable access to all IProperty<TContainer> for a given PropertyBag<TContainer>.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

EmptyReturns an empty collection of properties.

Methods

Method

Description

GetEnumeratorReturns an enumerator that iterates through the collection.

Structs

Struct

Description

PropertyCollection<TContainer>.EnumeratorAn enumerator struct to enumerate all properties for the given TContainer.