SettingsUnitHelperThrowIfEmptyCollectionT - метод

Throws an exception if the specified collection is empty.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
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.

См. также