> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.54.2

**`(fix):`** 在 `CollectionItemSerializer` 中将 `Activator.CreateInstance<TConverterType>()` 替换为 `new TConverterType()`。`new()` 泛型约束允许编译时实例化，移除了不支持 AOT 的基于反射的调用。

## 2.54.1

**`(chore):`** 移除在运行时使用反射（`GetField`、`GetCustomAttributes`）的通用 `EnumSerializer<T>` 模板。所有枚举已经使用带有静态字典查找的按枚举生成的序列化器，因此通用模板是死代码。此清理移除了最后的基于反射的枚举序列化路径，改善了 NativeAOT 和 IL 裁剪兼容性。