public byte[] toDPT(string type, object value) { try { if (dpts.ContainsKey(type)) { IDpt dpt = dpts[type]; return(dpt.toDPT(value)); } } catch (Exception) { } return(null); }
public object fromDPT(string type, byte[] data) { try { if (dpts.ContainsKey(type)) { IDpt dpt = dpts[type]; return(dpt.fromDPT(data)); } } catch (Exception) { } return(null); }