using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Shared { /// /// 指令集合 /// public static class CommandList { private static List commandList = new List(); static CommandList() { Array commands = Enum.GetValues(typeof(Command)); foreach (object command in commands) { commandList.Add((Command)command); } } /// /// 获取所有的枚举列表 /// public static List GetCommandList { get { return commandList; } private set { commandList = value; } } } }