Re: Casting question (creating things on the fly)
Mauricio Henriquez <[email protected]>
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list