Exemplo n.º 1
0
        private static void RemoveFromDictionary(string command, WordsDictionary redisDictionary)
        {
            int wordStartIndex = command.IndexOf(' ') + 1;

            string word = command.Substring(wordStartIndex, command.Length - wordStartIndex).Trim();

            redisDictionary.Remove(word);
            Console.WriteLine("Word is removed successfully.");
        }