Ejemplo n.º 1
0
 public static void MoveRule <T>(RuleCache <T> cache, T rule, int i) where T : class
 {
     if (i > 1)
     {
         cache.MoveRule(rule, i);
     }
 }
Ejemplo n.º 2
0
        public static void MoveRule <T>(RuleCache <T> cache, T rule, int i)
            where T : class
        {
            if (cache == null)
            {
                throw new ArgumentNullException(nameof(cache));
            }

            if (i > 1)
            {
                cache.MoveRule(rule, i);
            }
        }