[Mono-winforms-list] Casting question (creating things on the fly)
Mauricio Henriquez
buhochileno at gmail.com
Tue May 25 07:53:04 EDT 2010
Hi Paul:
What you can do is deserialize a object from a previously XML
serialized object, something like:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=236
When you serialize a object to a XML file, you are saving the "string"
representation of the object state at a given time, fron there you can
rebuild the object when you want from the stored info on the XML..
To find more usefull info about it, use "C# XML Serialization" on Mr.
Google :-)
Hope that it helps and if is like the thing that you are looking for
Cheers!
Mauricio
El 25-05-2010, a las 2:13, Paul <paul at all-the-johnsons.co.uk> escribió:
> Hi,
>
> Is it possible to create a winform object using something stored in a
> string?
>
> For example
>
> string m = "Label";
> object n = (object)m;
>
> n foo = new n();
>
> I'd imagine it can be, but after 20 mins of googling around, can't see
> anything that says I can...
>
> TTFN
>
> Paul
> --
> Biggles was quietly reading his favourite book when Algy burst through
> the door. Distracted for a moment, Biggles surveyed what had happened
> and turned a page. "Algy old man" he said, clearing his throat, "use
> the
> handle next time..." - Taken from "Biggles combs his Hair"
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
More information about the Mono-winforms-list
mailing list