private bool DictionaryIterateNext(string DictID, out string Key) { IDictionaryEnumerator ide; Key = ""; if (StorageIteratorList.TryGetValue(DictID, out ide) == false) return false; // If another element does not exist, return false if (ide.MoveNext() == false) { StorageIteratorList.Remove(DictID); return false; } Key = (string)ide.Key; return true; }