# IDurableSet&lt;T&gt;

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

```csharp
public interface IDurableSet<T> : ICollection<T>, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISet<T>, IEnumerable
```

Represents a set whose mutations are recorded in a journal.

## Remarks

The set takes ownership of the elements passed to it, and the journal records each mutation when it is made. To change an element, remove it and add a new instance.

## Type parameters

- `T`: The type of elements in the set.

## Properties

- [Count](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/properties/count-a6ee9a94/)

## Methods

- [Add(T)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/add-t-6568d4ad/)
- [Contains(T)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/contains-t-93763e6b/)
- [IsProperSubsetOf(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/ispropersubsetof-system-collections-generic-ienumerable-t-9f35f06b/)
- [IsProperSupersetOf(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/ispropersupersetof-system-collections-generic-ienumerable-t-1b90889c/)
- [IsSubsetOf(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/issubsetof-system-collections-generic-ienumerable-t-579a5d15/)
- [IsSupersetOf(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/issupersetof-system-collections-generic-ienumerable-t-0c872836/)
- [Overlaps(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/overlaps-system-collections-generic-ienumerable-t-2f4677d2/)
- [SetEquals(IEnumerable&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurableset-1/methods/setequals-system-collections-generic-ienumerable-t-51d4603b/)
