how to serialize a generic object field

  • Thread starter Thread starter Pascal
  • Start date Start date
P

Pascal

Hi everybody.
I have to serialize to XML a class like this:

public class MyClass{
string myString;
object myObject;
}

myObject can be a number(int, float, double), a date or a string. Any
suggestion?
 

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