F
Fabiano
Please,
i have an object that i need to serialize into a XML String. i don't want to
do it using filestream. How can i do using MemoryStream?
i created the code below, but when i use the ToString() method i get just
the object name, not the real data.
RetornoInclusao objRet = new RetornoInclusao();
objRet = objAutenticacao.IncluirSistema(dsSistema);
XmlSerializer serializer = new XmlSerializer(typeof(RetornoInclusao));
MemoryStream writer = new MemoryStream();
serializer.Serialize(writer, objRet);
writer.Position = 0;
string tmpXML = writer.ToString();
writer.Close();
tks in adv.
Fabiano
i have an object that i need to serialize into a XML String. i don't want to
do it using filestream. How can i do using MemoryStream?
i created the code below, but when i use the ToString() method i get just
the object name, not the real data.
RetornoInclusao objRet = new RetornoInclusao();
objRet = objAutenticacao.IncluirSistema(dsSistema);
XmlSerializer serializer = new XmlSerializer(typeof(RetornoInclusao));
MemoryStream writer = new MemoryStream();
serializer.Serialize(writer, objRet);
writer.Position = 0;
string tmpXML = writer.ToString();
writer.Close();
tks in adv.
Fabiano