I want to iterate over the alphabet like so:
foreach(char c in alphabet) { //do something with letter }
Is an array of chars the best way
You could do this:
for(int i = 65; i <= 95; i++) { //use System.Convert.ToChar() f.e. here doSomethingWithTheChar(Convert.ToChar(i)); }
Though, not the best way either. Maybe we could help better if we would know the reason for this.