Fork me on GitHubEpicdominant domains

OfType<(Of <(<'Other>)>)> Method
Create a new Variant<(Of <(<'FromCandidate, ToCandidate>)>)> that is satisfied by all the Other that are Other and satisfy the current specification.

Assembly: Epic.Prelude

Declaration Syntax
C#
public ISpecification<Other> OfType<Other>()
where Other : class
Generic Template Parameters
Other
The type of objects that we want to check against the current specification. It must either abstract or extend Candidate.
Return Value
A new ISpecification<(Of <(<'TCandidate>)>)> that is satisfied by all the Other that are Candidate and satisfy the current specification.
Exceptions
ExceptionCondition
EpicExceptionOther is Object.
blog comments powered by Disqus