[mono-android] Being driven insane....

Paul F. Johnson paul at all-the-johnsons.co.uk
Sun Nov 27 13:55:41 EST 2011


Hi,

> Not followed the rest of the thread, but this is what I often do for Serializable objects to be able to use them as strings:
> 
> public class Foo
> {
>     public override string ToString()
>     {
>         return Serialize(this);
>     }
> 
>     public static Foo Deserialize(string serializedData)
>     {
>         if (string.IsNullOrEmpty(serializedData))
>             return new Foo();
> 
>         XmlSerializer serializer = new XmlSerializer(typeof(Foo));
>         StringReader reader = new StringReader(serializedData);
>         return (Foo)serializer.Deserialize(reader);
>     }

Pretty much, this is what I expect I need to do, but the question is, if
I use PutExtra in the intent, where does it appear in the receiving
methods?

Paul
-- 
Vertraue mir, ich weiss, was ich mache...



More information about the Monodroid mailing list