Serializing object with members that are not all declared public

  • Thread starter Thread starter M. D'Costa
  • Start date Start date
M

M. D'Costa

Hello,

I am writing an application in C# and am trying to insert an object into a
message queue. The problem is that the object is quite complex with many
variables, some of which are not declared public.

Does anyone have any ideas as to how I could get around this problem,
without using the BinaryMessageFormatter, in that I should be able to insert
my object into the queue with all its variables, whether they are declared
as private, public or protected?

Any help will be appreciated.

Thanks,
Marise
 
Why don't you want to use the binary message formatter? It would help to
know the reason, as any solution will require some sort of serialization.
 
Back
Top