Tag: opcode

不可调用的成员”不能像方法一样使用

我正面临着一个问题。 所以我会马上放置代码; public static List blockedOpcodes = new List(); public static bool isOpcodeAllowed(ushort opcode) { lock (locker) { if (blockedOpcodes.Contains(opcode)) { Log1.LogMsg(“Oops! Someone tried to send a blocked packet: 0x{” + opcode + “:X}”); return false; } return true; } } public static void Load() { lock (locker) { StreamReader reader; using (reader = new […]