// 利用 ID 去取得描述的中文字 public static string GetEnumAttribute(ClientActionID reportType) { var members = typeof(ClientActionID).GetMember(reportType.ToString()); var attributes = members[0].GetCustomAttributes(typeof(ClientActionIDMapAttribute), false); var description = ((ClientActionIDMapAttribute)attributes[0]).Description; return(description); }
public override string ToString() { string strResult = string.Format("[CClientActionData] CID:{0}, Value:{1}", m_CID.ToString(), m_Value); return(strResult); }
public static void PushClientAction(ClientActionID ClientActionName, object Value, Dictionary <string, object> dictProtocol, object State) { LogMgr.DebugLog("[ClientService.PushClientAction] ClientActionName:{0}, Value:{1}", ClientActionName.ToString(), Value); ModifyClientAction(new CClientActionData(ClientActionName, Value, dictProtocol, State)); }