xml serialization of private fields

M

Mark Itzcovitz

I have a web method that returns a struct, and all the fields in the struct,
which are marked as public, get nicely serialized to xml. However, what I
really want is the fields to be private so the struct can only be treated as
a "black box". From everything I have read it seems that there is no way of
having anything other than public fields automatically serialized. Can
anyone tell me if I'm missing something?

Thanks,

Mark
 
M

Mark Itzcovitz

Thanks, I'll bear that in mind if I decide I can't live with the fields
being public.
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top