[Mono-devel-list] problem whit soap serialization

Lluis Sanchez lluis at ximian.com
Sun Feb 29 15:09:32 EST 2004


On dg, 2004-02-29 at 21:02, manuel kaderli wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> I would like to serialize my application data.
> In a book about c#(Microsoft) i saw  
> "System.Runtime.Serialization.Formatters.Soap"
> but it doesn't exist in mono.

The namespace is System.Runtime.Serialization.Formatters.Soap,
and the assembly is System.Runtime.Serialization.Formatters.Soap.dll

You'll need to compile your app like this:
mcs myapp.cs /r:System.Runtime.Serialization.Formatters.Soap.dll

Lluis.

> 
> In which namespace do i find the xml-seralization?
> 
> The binary serialization works good, but i would like to use xml instead of a 
> binary format.
> //works for me whit Serialization.Formatters.Binary;
> using System.Runtime.Serialization.Formatters.Binary;
>    Stream streamWrite = File.Create("MyRow.bin");
>    BinaryFormatter binaryWrite = new BinaryFormatter();
>    binaryWrite.Serialize(streamWrite, row);
>    streamWrite.Close();
> 
> kind regards 
> manuel
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAQkVXk3ycFnrKFaoRAkh0AJ9o+KN0vXB7+6BrWxAeBpA8AeYQgQCeLGvD
> s4EeEijUB2nyVlF/kDeZNKE=
> =cmIH
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list