Exemplo n.º 1
0
 private string GetMemberTotalPath(global::XmlAttribute fieldAttr, string totalPath)
 {
     if (fieldAttr == null)
     {
         return(null);
     }
     if (totalPath.Length == 0)
     {
         return(fieldAttr.Path);
     }
     return(totalPath + "/" + fieldAttr.Path);
 }
Exemplo n.º 2
0
 private void Load(string xmlKey, string totalPath, XmlNode topNode)
 {
     if (topNode == null)
     {
         return;
     }
     FieldInfo[] fields = this.GetFields();
     foreach (FieldInfo fieldInfo in fields)
     {
         global::XmlAttribute xmlAttribute = XmlClass.GetXmlAttribute(fieldInfo);
         if (xmlAttribute != null)
         {
             string memberTotalPath = this.GetMemberTotalPath(xmlAttribute, totalPath);
             if (memberTotalPath != null && memberTotalPath.Length != 0)
             {
                 this.SetField(fieldInfo, topNode, xmlKey, memberTotalPath, xmlAttribute.IsStandard);
             }
         }
     }
 }