Skip to content

M_Cyjb_CommonExceptions_CheckArrayElemenetNull__1

CYJB edited this page Mar 20, 2024 · 13 revisions

CommonExceptions.CheckArrayElemenetNull(T) 方法

检查指定的数组,如果为 null、长度为零或包含为 null 的元素则抛出相应异常。

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

语法

C#

public static void CheckArrayElemenetNull<T>(
	T[] array,
	string? paramName = null
)

参数

 

array
Type: T[]
要检查的数组。
paramName (Optional)
Type: System.String
数组参数的名称。

类型参数

 

T
要检查的数组元素类型。

参见

Reference

CommonExceptions 类
Cyjb 命名空间

Clone this wiki locally