I have a list of string, in this list there are some strings which are duplicated twice or more.
I want to count them and add them to dictionary like this:
List<string> lst = { 'A' , 'B' , 'B' , 'c' , 'c' , 'c' };
and it goes to dictionary like this :
A , 1
B , 2
c , 3
How can I do this ?!