Quickest way to enumerate the alphabet

后端 未结 7 706
猫巷女王i
猫巷女王i 2020-11-29 02:15

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

7条回答
提交回复
热议问题