# RepeatedFieldCodec&lt;T&gt; Methods

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

## ReadValue(Reader&lt;TInput&gt;, Field) {#readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-a2751c95}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcodec-1/methods/readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-a2751c95/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Serializers/Orleans.Serialization.Protobuf/RepeatedFieldCodec.cs#L61-L112)

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

Reads a value.

### Parameters

- `reader` (`Reader<TInput>`): The reader.
- `field` (`Field`): The field.

### Returns

The value.

## WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, RepeatedField&lt;T&gt;) {#writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-d314dbcd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcodec-1/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-d314dbcd/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Serializers/Orleans.Serialization.Protobuf/RepeatedFieldCodec.cs#L37-L56)

```csharp
public void WriteField<TBufferWriter>(ref Writer<TBufferWriter> writer, uint fieldIdDelta, Type expectedType, RepeatedField<T> value)
```

Writes a field.

### Parameters

- `writer` (`Writer<TBufferWriter>`): The writer.
- `fieldIdDelta` (`uint`): The field identifier delta.
- `expectedType` (`Type`): The expected type.
- `value` (`RepeatedField<T>`): The value.
