Methods_T_Cyjb_GenericConvert - CYJB/Cyjb GitHub Wiki

GenericConvert 方法

The GenericConvert type exposes the following members.

方法

 

名称 说明
公共方法静态成员 AddConverter(TInput, TOutput) 添加将对象从 TInput 类型转换为 TOutput 类型的转换器。
公共方法静态成员 AddConverterProvider 添加指定的类型转换器提供者。
公共方法静态成员 CanChangeType 返回对象能否从 inputType 类型转换为 outputType 类型。
公共方法静态成员 ChangeType(Object, Type) 返回指定类型的对象,其值等效于指定对象。
公共方法静态成员 ChangeType(TInput, TOutput)(TInput) 返回指定类型的对象,其值等效于指定对象。
公共方法静态成员 GetConverter(Type, Type) 获取将对象从 inputType 类型转换为 outputType 类型的转换器。
公共方法静态成员 GetConverter(TInput, TOutput)() 获取将对象从 TInput 类型转换为 TOutput 类型的转换器。
公共方法静态成员 GetConverterType 返回具有指定输入和输出类型的 Converter(TInput, TOutput) 类型。
  Back to Top

参见

Reference

GenericConvert 类
Cyjb 命名空间

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