static void Main(string[] args) { foreach (KeyValuePair <char, int> i in Compresser.letterCount("Hi my name is ethan")) { Console.WriteLine($"Letter {i.Key} is used {i.Value} times."); } }
public Dictionary <char, int> LetterCount() => c.letterCount();