# ObjectSerializer.Deserialize(byte[], SerializerSession, Type)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Serializer.cs)

```csharp
public object Deserialize(byte[] source, SerializerSession session, Type type)
```

Deserialize a value of type `type` from `source`.

### Parameters

- `source` (`byte[]`): The source buffer.
- `session` (`SerializerSession`): The serializer session.
- `type` (`Type`): The expected type of the value.

### Returns

The deserialized value.
