Hi I need to serialize several fields of my class
class Foo
{
Guid value1;
decimal value2;
SomeCustomEnum value3;
}
Can I serialize all fields one by one:
MemoryStream ms = new MemoryStream();
SoapFormatter sf = new SoapFormatter();
sf.Serialize(ms,value1;
sf.Serialize(ms, value2);
sf.Serialize(ms, value3);
string data = Convert.ToBase64String(ms.ToArray());
ms.Close();