Class NullExtensions
- Namespace
- Acuit.Pinpoint.Workflows.Validation
- Assembly
- Acuit.Pinpoint.Workflows.dll
Null-check argument validation extensions.
public static class NullExtensions
- Inheritance
-
NullExtensions
- Inherited Members
Methods
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?>The validator.
Returns
- ArgumentValidator<T?>
The
validator
instance to support chaining.
Type Parameters
T
The value type.
Exceptions
- ArgumentNullException
validator
is null.- 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>The validator.
Returns
- ArgumentValidator<T>
The
validator
instance to support chaining.
Type Parameters
T
The value type.
Exceptions
- ArgumentNullException
validator
is null.- InvalidOperationException
The expression value is null.