Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

XML serialize

VB.NET is there a way to serialize a class without writing to file but to memory instead?
0
thenrich
Asked:
thenrich
1 Solution
 
Tony McCreathTechnical SEO ConsultantCommented:
The XmlSerializer.Serialize() method lets you specify a Stream or Writer class.

You should be able to pass in a MemoryStream or Writer that writes to a MemoryStream
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now