public List <byte> ToByteList() { List <byte> byteList = new List <byte>(); byteList.AddRange(TCPHeader.ToByteList()); byteList.AddRange(funNumRequestDataBase.ToByteList()); return(byteList); }
public FunNumRequestDataTCP(IFunNumRequestDataBase funNumRequestDataBase) { this.funNumRequestDataBase = funNumRequestDataBase; TCPHeader = new TCPHeader(funNumRequestDataBase.ToByteList().Count()); }