# CustomPluralRuleProvider

> Provides custom plural rules to Smart.Format.

## Definition

* **Type:** Class
* **Namespace:** [Unity.SmartStrings.Extensions](/engine/6000.7/script-reference/unity/smartstrings/extensions.md)
* **Assembly:** UnityEngine.SmartStringsModule
* **Implements:** [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider)

```csharp
public class CustomPluralRuleProvider : IFormatProvider
```

## Constructors

| Constructor                                                                                                                                                                             | Description                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [CustomPluralRuleProvider(Unity.SmartStrings.Utilities.PluralRules.PluralRuleDelegate)](/engine/6000.7/script-reference/unity/smartstrings/extensions/custompluralruleprovider/ctor.md) | Creates a new custom plural rule provider. |

## Methods

| Method                                                                                                                   | Description                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetFormat](/engine/6000.7/script-reference/unity/smartstrings/extensions/custompluralruleprovider/getformat.md)         | Gets the format [Object](/engine/6000.7/script-reference/unityengine/object.md) for a [CustomPluralRuleProvider](/engine/6000.7/script-reference/unity/smartstrings/extensions/custompluralruleprovider.md).                                                                             |
| [GetPluralRule](/engine/6000.7/script-reference/unity/smartstrings/extensions/custompluralruleprovider/getpluralrule.md) | Gets the [PluralRules.PluralRuleDelegate](/engine/6000.7/script-reference/unity/smartstrings/utilities/pluralrules/pluralruledelegate.md) of the current [CustomPluralRuleProvider](/engine/6000.7/script-reference/unity/smartstrings/extensions/custompluralruleprovider.md) instance. |
