SettingsUnitHelperThrowIfEmptyCollectionT - метод

Throws an exception if the specified collection is empty.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
C#
public static void ThrowIfEmptyCollection<T>(
	IReadOnlyCollection<T> collection
)

Параметры

collection  IReadOnlyCollectionT
The collection to validate.

Параметры типа

T

Исключения

ArgumentExceptionThrown when the collection is empty.
ArgumentNullExceptionThrown when collection is null.

См. также