---
title: "Deserialize Method "
canonical: https://customerscanvas.com/docs/cc6/M_Aurigma_DesignAtoms_Serialization_IStateFileSerializer_Deserialize_3_ed6934cd.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Atoms .NET"
    versions: ["6.0.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# Deserialize Method 

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · **Archived documentation**
 
Deserializes a state from a Stream to a [State](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_State.htm.md) object.
 
**Namespace:** [Aurigma.DesignAtoms.Serialization](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Serialization.htm.md) 
 **Assembly:** Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)
 
## Syntax
  
```csharp
            State Deserialize(Stream stateStream,ISerializableStorage resourceStorage,bool optimizedState
)
```
 
### Parameters
 
 - stateStream
     - Type: System.IO.Stream
The state file to deserialize.

 - resourceStorage
     - Type: ISerializableStorage
The storage. By default, this value is `null`, and the state is stored in the default state folder.

 - optimizedState
     - Type: System.Boolean
If `false`, the state file is self-contained and includes assets. If `true`, the state file contains links to assets in the file cache instead of assets themselves. The default value is `false`.
 
### Return Value
The deserialized [State](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_State.htm.md) from the state file.
 
## See Also
  
### Reference
 
- [IStateFileSerializer Interface](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Serialization_IStateFileSerializer.htm.md)
- [Aurigma.DesignAtoms.Serialization Namespace](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Serialization.htm.md)
