Interface ISpecification<T>
- Namespace
- Framework.Patterns.Pure.Specification
- Assembly
- Assembly-CSharp.dll
조건 객체화 인터페이스. And/Or/Not 조합으로 복잡한 조건 표현. RuleEvaluator 내부에서 사용. [규칙] 구현체는 무상태(stateless)여야 한다. [규칙] 조합은 SpecificationExtensions(.And/.Or/.Not)으로 처리.
public interface ISpecification<T>
Type Parameters
T
- Extension Methods
Methods
IsSatisfiedBy(T)
대상이 조건을 만족하는지 평가.
bool IsSatisfiedBy(T target)
Parameters
targetT
Returns
- bool