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