Class TypeReader<T>
- Namespace
- HeyBox.Interactions
- Assembly
- HeyBox.Net.Interactions.dll
用于创建类型转换器的基类。InteractionService 使用类型转换器与斜线命令参数进行交互。
public abstract class TypeReader<T> : TypeReader
Type Parameters
T
- Inheritance
-
TypeReader<T>
- Inherited Members
Methods
CanConvertTo(Type)
当命令服务遇到未知参数类型时,将使用此方法搜索替代的类型转换器。
public override sealed bool CanConvertTo(Type type)
Parameters
type
Type要使用的服务提供程序。
Returns
- bool
如果找到了替代类型转换器,则为
true
;否则为false
。