# DataBus Binary Serializer This DataBus serializer uses **`BinaryFormatter`** to serialize and deserialize DataBus properties. ```cs endpointConfiguration.UseDataBus(); ``` > [!CAUTION] > **`BinaryFormatter` is unsafe and deprecated.** > It cannot be secured and must not be used for processing data. > Stop using it as soon as possible, even if the data appears trustworthy. > > Use a [safer serializer](/nservicebus/messaging/claimcheck/index.md#serialization) instead. > For guidance, see the upgrade notes: > **[Migration from BinaryFormatter](/nservicebus/upgrades/7to8/databus.md#migration-from-binaryformatter).**