Exemple #1
0
        public bool Remove(object a)
        {
            if (a is FloodRule rule)
            {
                return(rules.Remove(rule));
            }
            else if (a is string || a is ConcatenatedString)
            {
                int idx = rules.FindIndex((s) => s.Name == a.ToString());
                if (idx > -1)
                {
                    rules.RemoveAt(idx);
                    return(true);
                }
            }

            return(false);
        }