Exemple #1
0
        public void Clear()
        {
            PackTwoKeyDictionary ptkd = new PackTwoKeyDictionary();
            TwoKeyDictionary <string, int, int> tkd = ptkd.GetLoadedTwoKeyDictionary(POPSIZE);

            Assert.AreEqual(POPSIZE, tkd.Count);
            tkd.Clear();
            Assert.AreEqual(0, tkd.Count);
        }
Exemple #2
0
        // Event handlers

        private void manager_Reloaded(object sender, PluginErrorEventArgs e)
        {
            fileCache.Clear();
        }
 /// <summary>
 /// clears the stored translations
 /// </summary>
 public static void Clear()
 {
     dictionaries.Clear();
 }