private Type HeaderToType(byte[] header) { int num = BitConvert.ToUshort(header); if (!m_numProtocal.ContainsKey(num)) { LogError("not found protonum: " + num); return(null); } Type type = Type.GetType(m_numProtocal[num]); if (type == null) { LogError("null message num: " + num); } return(type); }