The task what I\'m trying to do is about showing up the frequency of every single characters from the string object, for the moment I\'ve done some part of code, just doesn\'t h
Here's a non Linq way to get the counts of all the unique letters.
var characterCount= new Dictionary();
foreach(var c in sign)
{
if(characterCount.ContainsKey(c))
characterCount[c]++;
else
characterCount[c] = 1;
}
Then to find out how many "a"s there are
int aCount = 0;
characterCount.TryGetValue('a', out aCount);
Or to get all the counts
foreach(var pair in characterCount)
{
Console.WriteLine("{0} - {1}", pair.Key, pair.Value);
}