# IBinary interface

Namespace: [GrasshopperIO.DataBase](https://developer.rhino3d.com/api/gh2/namespace/grasshopperio.database.md) · Assembly: [GrasshopperIO](https://developer.rhino3d.com/api/gh2/assembly/grasshopperio.md)

```cs
public interface IBinary
```

Interface to enforce support for binary (de)serialization. Do not implement this interface as a 3rd party developer. If you want to read and write your data to and from a GH archive, implement [IStorable](https://developer.rhino3d.com/api/gh2/type/grasshopperio.istorable.md) instead.

**Derived types:** [Node](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.node.md)

## Methods

- [Read](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.ibinary/read.md): Read your data from a binary stream.
- [Write](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.ibinary/write.md): Write the data to a binary stream.
