Skip to content

M_Cyjb_IConverterProvider_GetConverterFrom

CYJB edited this page Mar 20, 2024 · 13 revisions

IConverterProvider.GetConverterFrom 方法

返回将对象从 inputType 类型转换为 OriginType 类型的类型转换器。 要求类型转换器是静态方法,不能是实例方法。

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

语法

C#

Delegate? GetConverterFrom(
	Type inputType
)

参数

 

inputType
Type: System.Type
输入对象的类型。

返回值

Type: Delegate
将对象从 inputType 类型转换为 OriginType 类型的类型转换器,如果不存在则为 null

Remarks

返回的委托必须符合 Converter(TInput, TOutput), 其输入类型是 inputType,输出类型是 OriginType

参见

Reference

IConverterProvider 接口
Cyjb 命名空间

Clone this wiki locally