Skip to content

M_Cyjb_GenericConvert_GetConverter__2

CYJB edited this page Mar 20, 2024 · 13 revisions

GenericConvert.GetConverter(TInput, TOutput) 方法

获取将对象从 TInput 类型转换为 TOutput 类型的转换器。

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

语法

C#

public static Converter<TInput, TOutput>? GetConverter<TInput, TOutput>()

类型参数

 

TInput
输入对象的类型。
TOutput
输出对象的类型。

返回值

Type: Converter(TInput, TOutput)
将对象从 TInput 类型转换为 TOutput 类型的转换器。 如果不存在则为 null

参见

Reference

GenericConvert 类
GetConverter 重载
Cyjb 命名空间

Clone this wiki locally