求字符串转Keys集合!
求帮助,字符串怎样转换成枚举Keys集合!!!
例如
String
string text = "ACBC2351<>?.ss";
Keys[] keysList = ???;
[解决办法]
这样?
string text = "ACBC2351<>?.ss";
Keys[] keysList = new Keys[text.Length];
int i = 0;
foreach (char c in text)
{
keysList[i] = (Keys)c;
i++;
}