BBGamelib.CCTMXParser.ParseProperties C# (CSharp) Method

ParseProperties() static private method

static private ParseProperties ( XmlNode propertiesNode, string>.Dictionary properties ) : void
propertiesNode System.Xml.XmlNode
properties string>.Dictionary
return void
		static void ParseProperties(XmlNode propertiesNode, Dictionary<string, string> properties){
			XmlNodeList propertyList = propertiesNode.SelectNodes("property");
			var enumerator = propertyList.GetEnumerator();
			while (enumerator.MoveNext()) {
				XmlNode propertyNode = (XmlNode)enumerator.Current;
				string key = propertyNode.Attributes["name"].InnerText;
				string value = propertyNode.Attributes["value"].InnerText;
				properties.Add(key, value);
			}
		}