# DotNetSerializableCodec.ReadValue(Reader&lt;TInput&gt;, Field)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/ISerializableSerializer/DotNetSerializableCodec.cs#L89-L119)

```csharp
public object ReadValue<TInput>(ref Reader<TInput> reader, Field field)
```

Reads a value and returns it untyped. The type must still match the codec instance!

### Parameters

- `reader` (`Reader<TInput>`)
- `field` (`Field`)
