T_Cyjb_IConverterProvider - CYJB/Cyjb GitHub Wiki
类型转换器的提供者,可以根据输入输出类型生成类型转换器。
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public interface IConverterProvider
The IConverterProvider type exposes the following members.
名称 | 说明 | |
---|---|---|
![]() |
OriginType | 获取类型转换器的源类型,与该类型相关的类型转换会查找当前提供者。 |
名称 | 说明 | |
---|---|---|
![]() |
GetConverterFrom | 返回将对象从 inputType 类型转换为 OriginType 类型的类型转换器。 要求类型转换器是静态方法,不能是实例方法。 |
![]() |
GetConverterTo | 返回将对象从 OriginType 类型转换为 outputType 类型的类型转换器。 要求类型转换器是静态方法,不能是实例方法。 |