Пример #1
0
 private static void CombineInstanceCounts(List <Index> combineTo, List <Index> combineFrom)
 {
     foreach (Index combineToIndex in combineTo)
     {
         foreach (Index combineFromIndex in combineFrom)
         {
             if (IndexExtensions.IndexEqualById(combineToIndex, combineFromIndex))
             {
                 CombineInstanceCounts(combineToIndex, combineFromIndex);
             }
         }
     }
 }
Пример #2
0
 private static List <Index> GetIndicesToUpdate(List <Index> combineTo, List <Index> combineFrom)
 {
     return(combineTo.Where(
                t => combineFrom.Any(
                    f => IndexExtensions.IndexEqualById(t, f))).ToList());
 }