Exemple #1
0
 public static void ForEach <T, K>(this UnOrderMultiMap <T, K> multiMap, Action <T, List <K> > action)
 {
     foreach (var kv in multiMap)
     {
         action(kv.Key, kv.Value);
     }
 }
Exemple #2
0
 public static void ForEachFunc <T, K>(this UnOrderMultiMap <T, K> multiMap, Func <T, List <K>, bool> func)
 {
     foreach (var kv in multiMap)
     {
         if (!func(kv.Key, kv.Value))
         {
             break;
         }
     }
 }