public void SetValue(byte[] data) { if (Type == typeof(string)) { Value = MessageParsing.CanDataParseString(data, Factor, OffSet, Start, Length); } if (Type == typeof(double)) { Value = MessageParsing.CanDataParseDouble(data, Factor, OffSet, Start, Length); } }
public EngineService() { util = new Util(); messageParsing = new MessageParsing(); context = new DBContext(); }