public void Load(XElement node) { Value = new List <IPlistXmlItem>(); IPlistXmlItem tempItem = null; foreach (var childNode in node.Elements()) { tempItem = PListXmlReader.LoadXmlNode(childNode); if (null != tempItem) { Value.Add(tempItem); } } }
public void Load(XElement node) { Value = new Dictionary <string, IPlistXmlItem>(); string key = string.Empty; IPlistXmlItem tempItem = null; var nodes = node.Elements().ToList(); int count = nodes.Count / 2; for (int pos = 0; pos < count; pos++) { key = nodes[2 * pos].Value; tempItem = PListXmlReader.LoadXmlNode(nodes[2 * pos + 1]); if (null != tempItem) { Value.Add(key, tempItem); } } }