List<ParameterValue> _Items; // list of ParameterValue public ParameterValues(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p) { ParameterValue pv; _Items = new List<ParameterValue>(); // Loop thru all the child nodes foreach(XmlNode xNodeLoop in xNode.ChildNodes) { if (xNodeLoop.NodeType != XmlNodeType.Element) continue; switch (xNodeLoop.Name) { case "ParameterValue": pv = new ParameterValue(r, this, xNodeLoop); break; default: pv=null; // don't know what this is // don't know this element - log it OwnerReport.rl.LogError(4, "Unknown ParameterValues element '" + xNodeLoop.Name + "' ignored."); break; } if (pv != null) _Items.Add(pv); } if (_Items.Count == 0) OwnerReport.rl.LogError(8, "For ParameterValues at least one ParameterValue is required."); else _Items.TrimExcess(); }