void init() { Description = new Data.DescriptionInfo(); CustomClasses = new List<object>(); }
private static Data.DescriptionInfo ProcessDescription(XmlNode Node) { var result = new Data.DescriptionInfo(); foreach (XmlNode child in Node.ChildNodes) { if (child.NodeType == XmlNodeType.Element) { if (child.InnerText != "") { Type Settings = typeof(Data.DescriptionInfo); PropertyInfo info = Settings.GetProperty(child.Name); if (info != null) { Type t = info.PropertyType; info.SetValue(result, Convert.ChangeType(child.InnerText, t), null); } } } } return result; }