M_Cyjb_IConverterProvider_GetConverterTo - CYJB/Cyjb GitHub Wiki

IConverterProvider.GetConverterTo 方法

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

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

语法

C#

Delegate? GetConverterTo(
	Type outputType
)

参数

 

outputType
Type: System.Type
要将输入对象转换到的类型。

返回值

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

Remarks

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

参见

Reference

IConverterProvider 接口
Cyjb 命名空间

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