static void CheckKeyExist <TKey, TValue>(VTableStorage storage, IDictionary <TKey, TValue> dictionary, TKey key, string name) { if (!dictionary.ContainsKey(key)) { storage.GetLogger().ErrorFormat("{0} not found: {1}", name, key); foreach (TKey k in dictionary.Keys) { storage.GetLogger().ErrorFormat(" {0}", k); } } }
static void CheckKeyExist <TKey, TValue>(VTableStorage storage, ILookup <TKey, TValue> lookup, TKey key, string name) { if (!lookup.Contains(key)) { storage.GetLogger().ErrorFormat("{0} not found: {1}", name, key); foreach (var k in lookup.Select(g => g.Key)) { storage.GetLogger().ErrorFormat(" {0}", k); } } }