close
enum Colors { None=0, Red = 1, Green = 2, Blue = 4 };
 string[] colorStrings = { "0", "2", "8", "blue", "Blue", "Yellow", "Red, Green" };

Colors colorValue = (Colors) Enum.Parse(typeof(Colors), colorString);

https://msdn.microsoft.com/zh-tw/library/essfb559(v=vs.110).aspx
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 amychang2014 的頭像
    amychang2014

    工作需要筆記

    amychang2014 發表在 痞客邦 留言(0) 人氣()