public PlistDictionary(XmlNode dictionaryNode) { this.dictionaryNode = new Dictionary <string, PlistNode>(); for (int nodeIndex = 0; nodeIndex < dictionaryNode.ChildNodes.Count; nodeIndex += 2) { PlistNode plistNode = new PlistNode ( dictionaryNode.ChildNodes[nodeIndex], dictionaryNode.ChildNodes[nodeIndex + 1] ); this.dictionaryNode.Add(plistNode.Key, plistNode); } }
static private object GetArray(XmlNode valueNode) { List <PlistNode> plistNodeList = new List <PlistNode>(); for (int nodeIndex = 0; nodeIndex < valueNode.ChildNodes.Count; nodeIndex += 2) { PlistNode plistNode = new PlistNode ( valueNode.ChildNodes[nodeIndex], valueNode.ChildNodes[nodeIndex + 1] ); plistNodeList.Add(plistNode); } return(plistNodeList.ToArray()); }