how to fix KeyValuePair<char, int[]> in foreach statement? : how can i use   KeyValuePair<char, int[]> in foreach statement?
the error is	Cannot convert type 'char' to 'System.Collections.Generic.KeyValuePair<char, int[]>'

                foreach(KeyValuePair<char, int[]> characterEntry in occ_counts_before.Keys)
                {
                    characterEntry.Value[i] = characterEntry.Value[i - 1] + (characterEntry.Key == current ? 1 : 0);

                }