internal UPnPAction(XmlElement Xml, ServiceDescriptionDocument Parent) { List<UPnPArgument> Arguments = new List<UPnPArgument>(); this.parent = Parent; this.xml = Xml; foreach (XmlNode N in Xml.ChildNodes) { switch (N.LocalName) { case "name": this.name = N.InnerText; break; case "argumentList": foreach (XmlNode N2 in N.ChildNodes) { if (N2.LocalName == "argument") { UPnPArgument Argument = new UPnPArgument((XmlElement)N2); Arguments.Add(Argument); this.argumentByName[Argument.Name] = Argument; } } break; } } this.arguments = Arguments.ToArray(); }
internal UPnPAction(XmlElement Xml, ServiceDescriptionDocument Parent) { List <UPnPArgument> Arguments = new List <UPnPArgument>(); this.parent = Parent; this.xml = Xml; foreach (XmlNode N in Xml.ChildNodes) { switch (N.LocalName) { case "name": this.name = N.InnerText; break; case "argumentList": foreach (XmlNode N2 in N.ChildNodes) { if (N2.LocalName == "argument") { UPnPArgument Argument = new UPnPArgument((XmlElement)N2); Arguments.Add(Argument); this.argumentByName[Argument.Name] = Argument; } } break; } } this.arguments = Arguments.ToArray(); }