# ReadOnlyDictionaryCodec&lt;TKey, TValue&gt;.ConvertFromSurrogate(ReadOnlyDictionarySurrogate&lt;TKey, TValue&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.readonlydictionarycodec-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.readonlydictionarycodec-2/methods/)

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

```csharp
public override ReadOnlyDictionary<TKey, TValue> ReadOnlyDictionaryCodec<TKey, ConvertFromSurrogate(ref ReadOnlyDictionarySurrogate<TKey, TValue> surrogate)
```

Converts a value from the surrogate type to the field type.

### Parameters

- `surrogate` (`ReadOnlyDictionarySurrogate<TKey, TValue>`): The surrogate.

### Returns

The value.
