M_Cyjb_CommonExceptions_InvalidCast - CYJB/Cyjb GitHub Wiki
返回一种类型不能转换为另一种类型的异常。
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 对象。
异常 | 条件 |
---|---|
ArgumentNullException |
fromType 为 null 。 |
ArgumentNullException |
toType 为 null 。 |