示例#1
0
        private byte GetMsgType()
        {
            byte type = 0x00;

            if (Decoders.ContainsValue(Decoder))
            {
                type = Decoders.FirstOrDefault(d => d.Value.Type == Decoder.Type).Key;
            }
            return(type);
        }
        private LaserBaseResponse GetLaserBaseResponse()
        {
            LaserBaseResponse br = null;

            if (Decoders.ContainsValue(Decoder))
            {
                br = Decoders.FirstOrDefault(d => d.Value.Type == Decoder.Type).Value;
            }
            return(br);
        }