Apq.Cfg.DependencyInjection.ObjectBinder.md 1.1 KB

Apq.Cfg

Apq.Cfg.DependencyInjection

ObjectBinder Class

对象绑定器,支持嵌套对象和集合绑定

internal static class ObjectBinder

Inheritance System.Object 🡒 ObjectBinder

Remarks

此类使用反射进行配置绑定,不支持 Native AOT。 对于 AOT 场景,请使用 Apq.Cfg.SourceGenerator 包中的 [CfgSection] 特性。

Methods
BindObject(ICfgSection, object, Type) 将配置节绑定到对象(非泛型版本)
BindSection<T>(ICfgSection, T) 将配置节绑定到对象