CapyKit/Documentation/Help/M_CapyKit_Helpers_SerializationHelper_Deserialize__1_1.md

51 lines
1.2 KiB
Markdown
Raw Normal View History

# Deserialize<T>(Stream) Method
Deserializes an object to a given *T* type.
## Definition
**Namespace:** <a href="N_CapyKit_Helpers">CapyKit.Helpers</a>
2024-04-21 01:20:26 -05:00
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
**C#**
``` C#
public static T Deserialize<T>(
Stream stream
)
```
**F#**
``` F#
static member Deserialize :
stream : Stream -> 'T
```
#### Parameters
<dl><dt>  <a href="https://learn.microsoft.com/dotnet/api/system.io.stream" target="_blank" rel="noopener noreferrer">Stream</a></dt><dd>The steam.</dd></dl>
#### Type Parameters
<dl><dt /><dd>Generic type parameter.</dd></dl>
#### Return Value
T
A *T* object.
## Exceptions
<table>
<tr>
<td><a href="https://learn.microsoft.com/dotnet/api/system.formatexception" target="_blank" rel="noopener noreferrer">FormatException</a></td>
<td>Thrown when the format of an input is incorrect.</td></tr>
</table>
## See Also
#### Reference
<a href="T_CapyKit_Helpers_SerializationHelper">SerializationHelper Class</a>
<a href="Overload_CapyKit_Helpers_SerializationHelper_Deserialize">Deserialize Overload</a>
<a href="N_CapyKit_Helpers">CapyKit.Helpers Namespace</a>