public ushort GetOpcode(Type type) { MessageAttribute messageAttribute; if (!this.messageOpcode.TryGetValue(type, out messageAttribute)) { throw new Exception($"查找Opcode失败: {type.Name}"); } return messageAttribute.Opcode; }