# DelegateProperty(string, PropertyGetter<TContainer, TValue>, PropertySetter<TContainer, TValue>)

> Initializes a new instance of the DelegateProperty<TContainer, TValue> class.

## Definition

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

## DelegateProperty(string, PropertyGetter\<T, T>, PropertySetter\<T, T>)

```csharp
public DelegateProperty(string name, PropertyGetter<TContainer, TValue> getter, PropertySetter<TContainer, TValue> setter = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The property name.**** (\[PropertyGetter\<T, T>]\(/engine/6000.5/script-reference/unity/properties/propertygetter2)): The delegate to use when accessing the property value.**** (\[PropertySetter\<T, T>]\(/engine/6000.5/script-reference/unity/properties/propertysetter2)): The delegate to use when setting the property value.
