Serializing native types, invariant culture and xmlserializer.

  • Thread starter Thread starter William Stacey [MVP]
  • Start date Start date
W

William Stacey [MVP]

Couple questions. Say we are talking about native types such as int,
decimal, long, etc.
1) Does XmlSerializer use Invariant culture to serialize and deserialize
number types?
2) If wanted to do myself with *.ToString(), could I just use the Invariant
culture on all number types and be sure to use same on both sides? Will
this work in *all cases for all native types?
3) How about DateTime? Convert local DateTime to UTC time, ToString() using
invariant culture and send. The reverse on other side? What if the local
time was already UTC time? Would this cause issue? TIA
 

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