I'm searching a way to serialize a structure that contains different kind of object such as Strings, Integer and Collections.
Active2 years, 3 months ago
![]()
I have this data structure:
running the serializer:
You could serialize into other stream objects such as file streams if you want. The code calls the serializer's Serialize method, passing it the stream to serialize into (the StringWriter) and the Person object to serialize. The program displays the serialization in a text box and then closes the StringWriter.
the output only contains all non-collection variables such as: Download epson l120 resetter tool.
How i can serialize bookings Collection, without creating separate files using GetType(List(Of booking))?
Vb Net Serialize A Structure Pdf
Dandux97Dandux97
1 AnswerVb.net Serialize Structure To Byte Array
Shared members are not serialized because serialization is all about saving a class/structure instance, and shared members are not part of an instance.
Add an instance property to your structure and you should be good to go:
If you want the tag to be called Visual VincentVisual Vincent
<bookings> you can just apply an XmlArray attribute to the property: Msi motherboard bios driver.
16.2k55 gold badges2121 silver badges5656 bronze badges
![]() Not the answer you're looking for? Browse other questions tagged vb.netserializationstructxml-serializationixmlserializable or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |