Table of Contents

Class NullValidationExtensions

Namespace
Acuit.Pinpoint.Workflows.Validation
Assembly
Acuit.Pinpoint.Workflows.dll

Null-check argument validation extensions.

public static class NullValidationExtensions
Inheritance
NullValidationExtensions
Inherited Members

Methods

IsNotNull(ArgumentValidator<object?>)

Validates that an argument value is not null.

public static ArgumentValidator<object> IsNotNull(this ArgumentValidator<object?> validator)

Parameters

validator ArgumentValidator<object>

Returns

ArgumentValidator<object>

An argument validator for the validated argument value.

Exceptions

InvalidOperationException

The expression value is null.

IsNotNull<T>(ArgumentValidator<T?>)

Validates that an argument value is not null.

public static ArgumentValidator<T> IsNotNull<T>(this ArgumentValidator<T?> validator) where T : struct

Parameters

validator ArgumentValidator<T?>

Returns

ArgumentValidator<T>

An argument validator for the validated argument value.

Type Parameters

T

Exceptions

InvalidOperationException

The expression value is null.

IsNotNull<T>(ArgumentValidator<T>)

Validates that an argument value is not null.

public static ArgumentValidator<T> IsNotNull<T>(this ArgumentValidator<T> validator) where T : class

Parameters

validator ArgumentValidator<T>

Returns

ArgumentValidator<T>

An argument validator for the validated argument value.

Type Parameters

T

Exceptions

InvalidOperationException

The expression value is null.