Fork me on GitHubEpicdominant domains
API ► Epic.Specifications ► SpecificationBase<(Of <(<'TSpecification, Candidate>)>)> ► OrElse(ISpecification<(Of <<'(Candidate>)>>))

OrElse Method (other)
Create a new Disjunction<(Of <(<'TCandidate>)>)> that evaluates the other only if the current specification is not satisfied.

Assembly: Epic.Prelude

Declaration Syntax
C#
protected virtual ISpecification<Candidate> OrElse(
	ISpecification<Candidate> other
)
Parameters
other (ISpecification<(Of <(<'Candidate>)>)>)
The other specification to evaluate (that will not be nullNothingnullptr).
Return Value
A new Disjunction<(Of <(<'TCandidate>)>)> that evaluates the other only if the current specification is not satisfied.
Exceptions
ExceptionCondition
ArgumentNullExceptionother is nullNothingnullptr.
blog comments powered by Disqus