Parameters
- xr
- The instance of the System.Xml.XmlReader which used to read xml filter definition.
while (xr.Read()) { // read xml node value if (xr.NodeType == XmlNodeType.Text) { int.TryParse(xr.Value, out _field1); } }
while (xr.Read()) { if (xr.NodeType == XmlNodeType.Element) { // read "Minimum" xml node attribute if (xr.Name == "Minimum") { int.TryParse(xr.GetAttribute("Value"), out _minimum); } // read "Maximum" xml node attribute if (xr.Name == "Maximum") { int.TryParse(xr.GetAttribute("Value"), out _maximum); } } }