日期:2014-05-17  浏览次数:20825 次

求字符串转Keys集合!
求帮助,字符串怎样转换成枚举Keys集合!!!

例如


string text = "ACBC2351<>?.ss";

Keys[] keysList = ???;
String

------解决方案--------------------
这样?
 string text = "ACBC2351<>?.ss";
            Keys[] keysList = new Keys[text.Length];
            int i = 0;
            foreach (char c in text)
            {
                keysList[i] = (Keys)c;
                i++;
            }