TryReadElementFromXml method

  1. @override
Future<bool> TryReadElementFromXml(
  1. EwsServiceXmlReader reader
)
override
Tries to read element from XML. The reader.

Implementation

@override
Future<bool> TryReadElementFromXml(EwsServiceXmlReader reader) async {
  if (reader.LocalName == this._itemXmlElementName) {
    this.Add((await reader.ReadValue<String>())!);

    return true;
  } else {
    return false;
  }
}