Ask a questionAsk a question
 

Answername value collection in a web service

  • Tuesday, January 03, 2006 11:19 PMSteve1999 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    with .Net v2 (moving to WCF eventually), what datatype do i use for passing name/value collections thru web services?  I know that hashtable doesnt work, but what should be used?  is there a new generic type that implements IXmlSerialible to use?  do i need to stick with a ArrayList of my own type? 

    thanks.

Answers

  • Thursday, January 12, 2006 5:55 PMYasser Shohoud Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    WCF supports serializing Hashtable but if you want a type that also works with ASMX you should use an ArrayList (or array) of your custom type that has name and value fields.

     

All Replies