How can I serialize Hashtable

G

Guest

we have already built Web Application,we did changes on in class in
application so , we need to pass a Hashtable object to a webserivce, we're
using XML Serialization , my problem in how to serialize the Hastable in
order to pass it to a webservice.

the class:

[XmlRoot(ElementName="MessageClass")]
public class MessageClass
{

[XmlElement(ElementName="BasicAttribute")]
public Hashtable BasicAttribute;

[XmlElement(ElementName="TypeAttribute")]
public Hashtable TypeAttribute;
.........
......
}

any help please?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top