# FormatDelegate

> Creates a format delegate that wraps a function taking the format string.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.SmartStrings.Utilities](/engine/6000.7/script-reference/unity/smartstrings/utilities.md)
* **Assembly:** UnityEngine.SmartStringsModule

## FormatDelegate(Func\<string, string>)

Creates a format delegate that wraps a function taking the format string.

```csharp
public FormatDelegate(Func<string, string> getFormat)
```

### Parameters

**** (\[Func\<string, string>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Function that returns the formatted output for a given format string.

## FormatDelegate(Func\<string, IFormatProvider, string>)

Creates a format delegate that wraps a function taking the format string and a format provider.

```csharp
public FormatDelegate(Func<string, IFormatProvider, string> getFormat)
```

### Parameters

**** (\[Func\<string, IFormatProvider, string>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Function that returns the formatted output for a given format string and format provider.
