M_Cyjb_CommonExceptions_CheckCollectionEmpty - CYJB/Cyjb GitHub Wiki
检查指定的集合,如果长度为零则抛出相应异常。
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public static void CheckCollectionEmpty(
ICollection? collection,
string? paramName = null
)
- collection
- Type: System.Collections.ICollection
要检查的集合。 - paramName (Optional)
- Type: System.String
集合参数的名称。
Type:
ArgumentException 对象。