AppEvents.Rule.AndNot C# (CSharp) Méthode

AndNot() public méthode

public AndNot ( string eventName, int count = 1 ) : Rule
eventName string
count int
Résultat Rule
        public Rule AndNot(string eventName, int count = 1)
        {
            //TODO - What was I thinking?
            Func<UserEventList, bool> op = el => !el.Any(e => e.Name == eventName && e.Occurrrences.Count >= count);

            Operations.Add(op);

            return this;
        }