Beispiel #1
0
 public override string ToString()
 {
     if (TotalData != null)
     {
         return(string.Format("Packet[{0}. Data: {1}]", Sender.ToString(), string.Join("", Data.Select(p => (char)p))));
     }
     else
     {
         return(string.Format("Packet[{0}. Data: {1}]", Sender.ToString(), string.Join("", TotalData.Select(p => (char)p))));
     }
 }
Beispiel #2
0
 public string ToString(bool v)
 {
     if (TotalData != null)
     {
         return(string.Format("Packet[{0}. Data: {1}]", Sender.ToString(), string.Join(",", TotalData.Select(p => p.ToString()))));
     }
     else
     {
         return(string.Format("Packet[{0}. Data: {1}]", Sender.ToString(), string.Join(",", Data.Select(p => p.ToString()))));
     }
 }