# DotNetSerializableCodec Methods

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

## IsSupportedType(Type) {#issupportedtype-system-type-b2b7afe4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.dotnetserializablecodec/methods/issupportedtype-system-type-b2b7afe4/)

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

```csharp
public bool IsSupportedType(Type type)
```

Determines whether the specified type is supported by this instance.

### Parameters

- `type` (`Type`): The type.

### Returns

`true` if the specified type is supported; otherwise, `false`.

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.dotnetserializablecodec/methods/readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-711fca85/)

[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`)

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

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

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

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

Writes a field using the provided untyped value. The type must still match the codec instance!

### Parameters

- `writer` (`Writer<TBufferWriter>`)
- `fieldIdDelta` (`uint`)
- `expectedType` (`Type`)
- `value` (`object`)
