# PropertyCollection

> Initializes a new instance of the PropertyCollection<TContainer> struct which wraps the given enumerable.

## Definition

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

## PropertyCollection(IEnumerable\<IProperty\<T>>)

Initializes a new instance of the [PropertyCollection\<TContainer>](/engine/6000.5/script-reference/unity/properties/propertycollection1.md) struct which wraps the given enumerable.

```csharp
public PropertyCollection(IEnumerable<IProperty<TContainer>> enumerable)
```

### Parameters

**** (\[IEnumerable\<IProperty\<T>>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): An IEnumerable of properties to wrap.

## PropertyCollection(List\<IProperty\<T>>)

Initializes a new instance of the [PropertyCollection\<TContainer>](/engine/6000.5/script-reference/unity/properties/propertycollection1.md) struct which wraps the given properties list.

```csharp
public PropertyCollection(List<IProperty<TContainer>> properties)
```

### Parameters

**** (\[List\<IProperty\<T>>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): A list of properties to wrap.
