IsEndElementWithNamespace method

bool IsEndElementWithNamespace(
  1. XmlNamespace xmlNamespace,
  2. String? localName
)
Determines whether current element is a end element. The XML namespace. Name of the local.

Implementation

bool IsEndElementWithNamespace(XmlNamespace xmlNamespace, String? localName) {
  return (this.LocalName == localName) &&
      (this.NodeType == XmlNodeType.EndElement) &&
      ((this.NamespacePrefix ==
              EwsUtilities.GetNamespacePrefix(xmlNamespace)) ||
          (this.NamespaceUri == EwsUtilities.GetNamespaceUri(xmlNamespace)));
}