LoadFromXml method
Loads from XML.
The reader.
Name of the local element.
Implementation
@override
Future<void> LoadFromXml(
EwsServiceXmlReader reader, String? localElementName) async {
reader.EnsureCurrentNodeIsStartElementWithNamespace(
XmlNamespace.Types, localElementName);
if (!reader.IsEmptyElement) {
do {
await reader.Read();
if (reader.IsStartElement()) {
TEntry? entry = this.CreateEntry(reader);
if (entry != null) {
await entry.LoadFromXml(reader, reader.LocalName);
this.InternalAdd(entry);
} else {
await reader.SkipCurrentElement();
}
}
} while (!reader.IsEndElementWithNamespace(
XmlNamespace.Types, localElementName));
}
}