Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Specifications/PredicateSpecification.cs =================================================================== diff -u -r4055 -r4056 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Specifications/PredicateSpecification.cs (.../PredicateSpecification.cs) (revision 4055) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Specifications/PredicateSpecification.cs (.../PredicateSpecification.cs) (revision 4056) @@ -22,36 +22,35 @@ using System; using Deltares.Dam.Data; -namespace Deltares.Standard.Specifications +namespace Deltares.Standard.Specifications; + +public class PredicateSpecification : CompositeSpecification { - public class PredicateSpecification : CompositeSpecification - { - private readonly Predicate predicate; + private readonly Predicate predicate; - public PredicateSpecification(Predicate predicate) + public PredicateSpecification(Predicate predicate) + { + if (predicate == default) { - if (predicate == default) - { - throw new ArgumentNullException("predicate"); - } - - this.predicate = predicate; + throw new ArgumentNullException("predicate"); } - #region ISpecification Members + this.predicate = predicate; + } - /// - /// Determines whether the candidate satisfies the specification. - /// - /// The candidate. - /// - /// true if the candidate satisfies the specification otherwise, false. - /// - public override bool IsSatisfiedBy(T candidate) - { - return predicate(candidate); - } + #region ISpecification Members - #endregion + /// + /// Determines whether the candidate satisfies the specification. + /// + /// The candidate. + /// + /// true if the candidate satisfies the specification otherwise, false. + /// + public override bool IsSatisfiedBy(T candidate) + { + return predicate(candidate); } + + #endregion } \ No newline at end of file