EnsureCurrentNodeIsStartElement method

void EnsureCurrentNodeIsStartElement()
Ensures the current node is start element.

Implementation

void EnsureCurrentNodeIsStartElement() {
  if (this.NodeType != XmlNodeType.Element) {
    throw new ServiceXmlDeserializationException("""string.Format(
                      Strings.ExpectedStartElement,
                      this.xmlReader.Name,
                      this.NodeType)""");
  }
}