# IDurableDictionary&lt;TKey, TValue&gt;

Package: [Microsoft.Orleans.Durable](/orleans/docs/api/csharp/microsoft.orleans.durable/) 10.0.0-alpha.1

```csharp
public interface IDurableDictionary<TKey, TValue> : ICollection<KeyValuePair<TKey, TValue>>, IDictionary<TKey, TValue>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable
    where TKey : notnull
```

Represents a dictionary whose mutations are recorded in a journal.

## Remarks

The dictionary takes ownership of the keys and values passed to it, and the journal records each mutation when it is made. To change a value, assign a new instance.

## Type parameters

- `TKey`: The type of keys in the dictionary.
- `TValue`: The type of values in the dictionary.
