# NameValueCollectionCodec.ConvertFromSurrogate(NameValueCollectionSurrogate)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/NameValueCollectionCodec.cs#L26-L32)

```csharp
public override NameValueCollection ConvertFromSurrogate(ref NameValueCollectionSurrogate surrogate)
```

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

### Parameters

- `surrogate` (`NameValueCollectionSurrogate`): The surrogate.

### Returns

The value.
