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