---
sidebar_position: 3
slug: /dev/serialiser
---

# 98.3、序列化库

:::tip[说明]
1. 实现`linker.libs.ISerializer`接口
2. 然后注入覆盖原本的序列化库实现
```
//初始化
LinkerMessengerEntry.Initialize();
//在这里可以注入覆盖实现
LinkerMessengerEntry.AddService<linker.libs.ISerializer, MySerializer>();

LinkerMessengerEntry.Build();
//排除默认的序列化库
LinkerMessengerEntry.Setup(ExcludeModule.SerializerMemoryPack);
```
:::