EnsureCurrentNodeIsEndElement method

void EnsureCurrentNodeIsEndElement(
  1. XmlNamespace xmlNamespace,
  2. String localName
)
Ensures the current node is end element. The XML namespace. Name of the local.

Implementation

void EnsureCurrentNodeIsEndElement(
    XmlNamespace xmlNamespace, String localName) {
  if (!this.IsEndElementWithNamespace(xmlNamespace, localName)) {
    if (!(this.IsStartElementWithNamespace(xmlNamespace, localName) &&
        this.IsEmptyElement)) {
      throw new ServiceXmlDeserializationException("""string.Format(
                          Strings.ElementNotFound,
                          localName,
                          xmlNamespace)""");
    }
  }
}