Table of Contents

Class Check

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Provides assertion functions to check parameters meeting certain requirements.

public static class Check
Inheritance
Check

Methods

Assert(bool)

Checks for the condition. If the condition is false throws an exception.

GetEnumValueNotSupportedException<T>(T)

Raises an exception informs that specified enumeration value is not supported.

NonNull(object, string)

Checks whether specified object is not null. If object is null throws an exception.

NonNullOrEmpty(IEnumerable, string)

Checks whether specified value is not null or an empty value. If value is null or empty throws an exception.

NonNullOrEmpty(string, string)

Checks whether specified string is not null or an empty string. If string is null or empty throws an exception.

Verify(bool)

Verifies the condition. If the condition is false throws an exception.