# Codec_Role

Package: [Microsoft.Orleans.Transactions](/orleans/docs/api/csharp/microsoft.orleans.transactions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Transactions)

```csharp
public sealed class Codec_Role : IFieldCodec, IFieldCodec<Role>
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Constructors

- [Codec_Role](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleanscodegen.orleans.transactions.participantid.codec-role/constructors/constructor-cf9673f3/)

## Methods

- [ReadValue(Reader&lt;TReaderInput&gt;, Field)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleanscodegen.orleans.transactions.participantid.codec-role/methods/readvalue-1-ref-orleans-serialization-buffers-reader-treaderinput-orleans-serial-d8bb145a/)
- [WriteField(Writer&lt;TBufferWriter&gt;, uint, Type, Role)](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleanscodegen.orleans.transactions.participantid.codec-role/methods/writefield-1-ref-orleans-serialization-buffers-writer-tbufferwriter-uint-system-3f987ca8/)
