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
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