Specification that is satisfied by any TCandidate.
Inheritance Hierarchy
Object | ||||
![]() | VisitableBase | |||
![]() | SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)> | |||
![]() | StatelessSpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)> | |||
![]() | Any<(Of <(<'TCandidate>)>)> |
Assembly: Epic.Prelude
Declaration Syntax
C# |
[SerializableAttribute] public sealed class Any<TCandidate> : StatelessSpecificationBase<Any<TCandidate>, TCandidate>, IEquatable<Any<TCandidate>>, ISerializable where TCandidate : class
Generic Template Parameters
- TCandidate
- The type of the objects that can be tested with this specification.
Remarks
This is a serializable singleton: an IObjectReference will always return the
instance at Specification after deserialization.
Members
All Members | Methods | Fields | |||
Member | Description | |
---|---|---|
![]() | AndAlso(ISpecification<(Of <<'(TCandidate>)>>)) |
Overrides the default behaviour returning other.
(Overrides SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)>.AndAlso(ISpecification<(Of <<'(Candidate>)>>)).) |
![]() | BuildNegation(ISpecification<(Of <<'(TCandidate>)>>)%) |
Returns in negation a No<(Of <(<'TCandidate>)>)>.
(Overrides SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)>.BuildNegation(ISpecification<(Of <<'(Candidate>)>>)%).) |
![]() | IsSatisfiedByA(TCandidate) |
Determines that this specification is satisfied by any candidate.
(Overrides SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)>.IsSatisfiedByA(Candidate).) |
![]() | OfAnotherType<(Of <<'(Other>)>>)()()()() |
Return a specifications satisfied by any Other that
satisfy this specification.
(Overrides SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)>.OfAnotherType<(Of <<'(Other>)>>)()()()().) |
![]() | OrElse(ISpecification<(Of <<'(TCandidate>)>>)) |
Overrides the default behaviour returning the current instance.
(Overrides SpecificationBase<(Of <(<'Any<(Of <(<'TCandidate>)>)>, TCandidate>)>)>.OrElse(ISpecification<(Of <<'(Candidate>)>>)).) |
![]() ![]() | Specification |
Singleton instance of the specification.
|
![]() | ToString()()()() |
Returns a String that represents the current specification in a mathematical notation.
(Overrides Object.ToString()()()().) |