Exemple #1
0
 private bool AllPruningPerformed(UniqueAddress removed)
 {
     return(_dataEntries.All(x =>
     {
         var key = x.Key;
         var envelope = x.Value.Item1;
         var data = x.Value.Item1.Data;
         var pruning = x.Value.Item1.Pruning;
         if (data is IRemovedNodePruning)
         {
             var z = pruning[removed];
             return (z != null) && !(z.Phase is PruningInitialized);
         }
         return false;
     }));
 }
Exemple #2
0
 public static bool forall <K, V>(IImmutableDictionary <K, V> map, Func <KeyValuePair <K, V>, bool> pred) =>
 map.All(kv => pred(kv));
Exemple #3
0
        private bool ValidParameters(IImmutableDictionary <string, object> parameters)
        {
            var propertyMap = Process.Properties.ToDictionary(p => p.Name, p => p.StructureRef);

            return(parameters.All(p => p.Value.GetType().Name.ToLower() == propertyMap[p.Key].ToLower()));
        }
Exemple #4
0
 public static bool forall <K, V>(IImmutableDictionary <K, V> map, Func <Tuple <K, V>, bool> pred) =>
 map.All(kv => pred(tuple(kv.Key, kv.Value)));