M_Cyjb_CommonExceptions_ArgumentWrongType - CYJB/Cyjb GitHub Wiki

CommonExceptions.ArgumentWrongType 方法

返回参数类型错误的异常。

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

语法

C#

public static ArgumentException ArgumentWrongType(
	Object? actualValue,
	Type targetType,
	string? paramName = null
)

参数

 

actualValue
Type: System.Object
实际的参数值。
targetType
Type: System.Type
目标类型的值。
paramName (Optional)
Type: System.String
产生异常的参数名称。

返回值

Type: ArgumentException
ArgumentException 对象。

参见

Reference

CommonExceptions 类
Cyjb 命名空间

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