This project is read-only.

Serialize attributes of object's properties through Asp WebService

Aug 19, 2010 at 9:58 AM
Hi all, I'm developing a Win form application with Client-Server model. At server, I used a ASP Web Service, and at Client, I called the server through a Web Service Preference. I created all object on Server and serialize them to Client, but I only serialized their properties with out their attribute. Example: I created an object on server: [Serialize()] public class Customer { public Customer() { } [BrowsableAttribute(false)] public int Id {get; set;} [CategoryAttribute ("Customer infomation")] [DescriptionAttribute ("Id of customer")] public int CustomerId {get; set;} [CategoryAttribute ("Customer infomation")] [DescriptionAttribute ("Name of customer")] public string CustomerName {get; set;} } After I serialized Customer object to Client, it's has only properties without attributes of it's properties as behind: [Serialize()] public class Customer() { public Customer() { } public int Id {get; set;} public int CustomerId {get; set;} public string CustomerName {get; set;} } Please help me! Thanks!