创建以Microsoft .NET Remoting为基础的分布式应用架构
written By 卢彦
posted on 2004-11-17 16:49 张逸 阅读(2039) 评论(1) 编辑 收藏 所属分类: .Net Remoting
这是泛型List<SerialEmployee> emp = new List<SerialEmployee>(); 这是泛型中的对象public class SerialEmployee { public int EmployeeID; public string LastName; public string FirstName; public int YearsService; public double Salary; public SerialEmployee(int EmployeeID, string LastName, string FirstName, int YearsService, double Salary) { this.EmployeeID = EmployeeID; this.LastName = LastName; this.FirstName = FirstName; this.YearsService = YearsService; this.Salary = Salary; } 我将这泛型中添加数据后,发生到远程客户端 我该如何反序列化它,然后来读取泛型中的成员! 问题补充:emp链表中的对象SerialEmployee在 emp.Add(new SerialEmployee(1, "cehnli", "Li", 33,43.44)); 这后,序列化,通过socket发送到对方主机,对方主机应该如何反序列化它 他是c#的应用程序 回复 引用 查看
《软件设计精要与模式》
《WCF服务编程》