如果要将比如“beijing”字符串转换为ConcertCode.BEIJING的话,可以通过如下方法: ConcertCode c = (ConcertCode)Enum.Parse(typeof(ConcertCode), 字符串的变量, ...
確定! 回上一頁