M_Cyjb_CommonExceptions_InvalidCast - CYJB/Cyjb GitHub Wiki

CommonExceptions.InvalidCast 方法

返回一种类型不能转换为另一种类型的异常。

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

语法

C#

public static InvalidCastException InvalidCast(
	Type fromType,
	Type toType
)

参数

 

fromType
Type: System.Type
转换的源类型。
toType
Type: System.Type
转换的目标类型。

返回值

Type: InvalidCastException
InvalidCastException 对象。

Exceptions

 

异常 条件
ArgumentNullException fromTypenull
ArgumentNullException toTypenull

参见

Reference

CommonExceptions 类
Cyjb 命名空间

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