Пример #1
0
        public void ParseClassRule(string line)
        {
            var parts = line.Split(new char[] { ':' });

            var values = parts[1].Split(new char[] { ' ', '-' }, StringSplitOptions.RemoveEmptyEntries);

            var rule = Tuple.Create(int.Parse(values[0]), int.Parse(values[1]), int.Parse(values[3]), int.Parse(values[4]));

            ClassRules.Add(parts[0], rule);
        }
 protected void AddClassRule(Predicate <T> rule, string message)
 {
     ClassRules.Add(new ClassRule <T>(rule, message));
 }