# ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt; Fields

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

## KeyComparer {#keycomparer-dfa1e56a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/keycomparer-dfa1e56a/)

```csharp
[Orleans.Id(1)]
public IComparer<TKey> ImmutableSortedDictionarySurrogate<TKey, KeyComparer
```

Gets or sets the key comparer.

### Value

The key comparer.

## ValueComparer {#valuecomparer-9c57995e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/valuecomparer-9c57995e/)

```csharp
[Orleans.Id(2)]
public IEqualityComparer<TValue> ImmutableSortedDictionarySurrogate<TKey, ValueComparer
```

Gets or sets the value comparer.

## Values {#values-786bab89}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarysurrogate-2/fields/values-786bab89/)

```csharp
[Orleans.Id(0)]
public List<KeyValuePair<TKey, TValue>> ImmutableSortedDictionarySurrogate<TKey, Values
```

Gets or sets the values.

### Value

The values.
