現(xiàn)有<P> public enum PermissionType<BR> {<BR> /// <summary><BR> /// 拒絕訪問(wèn)<BR> /// </summary><BR> Refuse = 0,<BR> /// <summary><BR> /// 允許訪問(wèn)<BR> /// </summary><BR> Allow = 1,<BR> } 如何通過(guò)程序讀取枚舉信息,轉(zhuǎn)換成如下字符串:枚舉:PermissionType<BR>名稱(chēng) 值 說(shuō)明<BR>Refuse 0 拒絕訪問(wèn)<BR>Allow 1 允許訪問(wèn)
是否可以通過(guò)反射獲取注釋信息?
幕布斯7119047
2018-07-23 13:14:27