CapyKit/Documentation/Help/M_CapyKit_Helpers_SerializationHelper_SerializeToBytes.md

39 lines
906 B
Markdown
Raw Normal View History

# SerializeToBytes Method
Serializes an object to a byte array.
## 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 byte[] SerializeToBytes(
Object obj
)
```
**F#**
``` F#
static member SerializeToBytes :
obj : Object -> byte[]
```
#### Parameters
<dl><dt>  <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a></dt><dd>The object.</dd></dl>
#### Return Value
<a href="https://learn.microsoft.com/dotnet/api/system.byte" target="_blank" rel="noopener noreferrer">Byte</a>[]
A `JSON` encoded string.
## See Also
#### Reference
<a href="T_CapyKit_Helpers_SerializationHelper">SerializationHelper Class</a>
<a href="N_CapyKit_Helpers">CapyKit.Helpers Namespace</a>