protected void WriteXMLProperty(string strProperty) { System.Xml.XmlNode Node = XMLDoc.SelectSingleNode("/Person/" + strProperty); CSLib.LateBinder lb = new CSLib.LateBinder(this); string strValue = lb.GetProperty(strProperty).ToString(); Node.InnerText = strValue; }
protected void ReadXMLProperty(string strProperty) { System.Xml.XmlNode Node = XMLDoc.SelectSingleNode("/Person/" + strProperty); CSLib.LateBinder lb = new CSLib.LateBinder(this); if (Node != null) { string strValue = Node.InnerText; lb.SetProperty(strProperty, strValue); } else { lb.SetProperty(strProperty, null); } }