示例#1
0
 public void SetData(int senderId, SendrType sender, string text)
 {
     byte[] textdata = Encoding.UTF8.GetBytes(text);
     dataLenght = textdata.Length;
     Array.Copy(textdata, data, dataLenght);
     this.senderId = senderId;
     sendrType     = sender;
 }
示例#2
0
 public MessageChat(int senderId, SendrType sender, string text)
 {
     SetData(senderId, sender, text);
 }