Пример #1
0
        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;
        }
Пример #2
0
        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);
            }
        }