# WellKnownStringComparerCodec Methods

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

## IsSupportedType(Type) {#issupportedtype-system-type-78347ad8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.wellknownstringcomparercodec/methods/issupportedtype-system-type-78347ad8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/WellKnownStringComparerCodec.cs#L57-L61)

```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-a33e2257}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.wellknownstringcomparercodec/methods/readvalue-1-ref-orleans-serialization-buffers-reader-tinput-orleans-serializatio-a33e2257/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/WellKnownStringComparerCodec.cs#L66-L135)

```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-c47a9073}

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/WellKnownStringComparerCodec.cs#L142-L210)

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