Serializing a collection

  • Thread starter Thread starter Richard Atkinson
  • Start date Start date
R

Richard Atkinson

Can anyone please let me know if you can serialize a property of type
collection in a class using the xmlMessageFormatter for posting to a message
queue using MSMQ

Thanks
 
Richard,

Richard Atkinson said:
Can anyone please let me know if you can serialize a property of type
collection in a class using the xmlMessageFormatter for posting to a
message queue using MSMQ

VB.NET's own 'Collection' class cannot be serialized. However, you can use
one of the collections in the 'System.Collections' namespace instead, for
example, 'ArrayList' is serializable.
 

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

Back
Top