Example #1
0
 protected override void Deserialize(SerializationInfo info, StreamingContext ctxt)
 {
     Address  = (string)info.GetValue("Address", typeof(string));
     UserName = (string)info.GetValue("Username", typeof(string));
     Port     = (int)info.GetValue("Port", typeof(int));
     Posts    = (PostList)info.GetValue("Posts", typeof(PostList));
 }
Example #2
0
 public Friend(string username, string addr, int port)
     : base(username)
 {
     UserName = username;
     Address  = addr;
     Port     = port;
     Posts    = new PostList(username);
 }