# ImmutableHashSetCopier&lt;T&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablehashsetcopier-1/)

## DeepCopy(ImmutableHashSet&lt;T&gt;, CopyContext) {#deepcopy-system-collections-immutable-immutablehashset-t-orleans-serialization-c-76e79993}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablehashsetcopier-1/methods/deepcopy-system-collections-immutable-immutablehashset-t-orleans-serialization-c-76e79993/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ImmutableHashSetCodec.cs#L75-L91)

```csharp
public ImmutableHashSet<T> DeepCopy(ImmutableHashSet<T> input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

- `input` (`ImmutableHashSet<T>`): The input.
- `context` (`CopyContext`): The context.

### Returns

A copy of `input`.

## IsShallowCopyable {#isshallowcopyable-d292c054}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablehashsetcopier-1/methods/isshallowcopyable-d292c054/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ImmutableHashSetCodec.cs#L70)

```csharp
public bool IsShallowCopyable()
```

Returns true if the type is shallow-copyable.
