T_Cyjb_IConverterProvider - CYJB/Cyjb GitHub Wiki

IConverterProvider 接口

类型转换器的提供者,可以根据输入输出类型生成类型转换器。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public interface IConverterProvider

The IConverterProvider type exposes the following members.

属性

 

名称 说明
公共属性 OriginType 获取类型转换器的源类型,与该类型相关的类型转换会查找当前提供者。
  Back to Top

方法

 

名称 说明
公共方法 GetConverterFrom 返回将对象从 inputType 类型转换为 OriginType 类型的类型转换器。 要求类型转换器是静态方法,不能是实例方法。
公共方法 GetConverterTo 返回将对象从 OriginType 类型转换为 outputType 类型的类型转换器。 要求类型转换器是静态方法,不能是实例方法。
  Back to Top

参见

Reference

Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️