StringBuilder sb = new StringBuilder();
XmlSerializer s = new XmlSerializer(typeof(TradeInfoArray));
StringWriter stringWriter = new StringWriter();
s.Serialize(stringWriter, arrTrade);
result = stringWriter.ToString();
Tuesday, July 21, 2009
Serialize object to a string instead of stream
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment