Hi Mattias!
Thanks for your fast answere! I am developing a programm to store and
load classes/instances/methods... I store values for methods(according
to their MethodInfo)and for testing purpose i tried to construate a
System.String with the constructor String(Char*, int, int)! Creating and
storing works fine, but reloading does not work!
The method to reload a Value looks like this(Xml-Data see above):
private object GenerateValue(XmlElement element)
{
//Get Type
XmlNodeList xnl = element.GetElementsByTagName("type");
Type valType = Type.GetType(xnl.Item(0).InnerText);
//Get Value
xnl = element.GetElementsByTagName("value");
String value = xnl.Item(0).InnerText;
//Generate Value
return Convert.ChangeType(value,valType);
}
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!