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)); }
public Friend(string username, string addr, int port) : base(username) { UserName = username; Address = addr; Port = port; Posts = new PostList(username); }