Specification.

NotNull<T, TProperty>(Expression<Func<T, TProperty>>) Method

Summary

Creates NullSpecification<T> negation for candidate property:

Checks if candidate property is not null.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotNull<T, TProperty>(Expression<Func<T, TProperty>> selector)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.
TProperty Type of candidate property to verify.

Parameters

Name Type Description
selector Expression<Func<T, TProperty>> Candidate property selector.

Return Value

Type Description
IComplexSpecification<T> New complex Specification for candidate property.

Exceptions

Type Description
System.ArgumentNullException Thrown when selector is null.
System.ArgumentException Thrown when selector is not valid.
GitHub