예제 #1
0
파일: Program.cs 프로젝트: afrog33k/mcocoa
 private static void DoAddResultType(ObjectModel objects, XmlNode tr)
 {
     if (tr.ChildNodes.Count > 0)
     {
         foreach (XmlNode child in tr.ChildNodes)
         {
             if (child.Name == "TypeResult")
             {
                 string name = child.Attributes["name"].Value;
                 string type = child.Attributes["type"] != null ? child.Attributes["type"].Value : null;
                 objects.AddResultMapping(name, type);
             }
         }
     }
 }