public BuildBinary Filter(List<string> ModuleNames) { BuildBinary NewBinary = new BuildBinary(Name, Type); foreach (BuildModule Module in Modules) { if (ModuleNames.Contains(Module.Name)) { NewBinary.Modules.Add(Module); } } return NewBinary; }
public static BuildBinary FromXml(XmlNode Node) { BuildBinary NewBinary = new BuildBinary(Node.Attributes["name"].Value, Node.Attributes["type"].Value); if (NewBinary.Type == "cpp") { using (XmlNodeList ModuleNodeList = Node.SelectNodes("module")) { foreach (XmlNode ModuleNode in ModuleNodeList) { BuildModule NewModule = BuildModule.FromXml(ModuleNode); NewBinary.Modules.Add(NewModule); } } } return NewBinary; }