TryReadValue method

Future<bool> TryReadValue(
  1. OutParam<String> value
)
Tries to read value. The value.

Implementation

Future<bool> TryReadValue(OutParam<String> value) async {
  if (!this.IsEmptyElement) {
    await this.Read();

    if (this.NodeType == XmlNodeType.Text) {
      value.param = this._xmlReader.Value;
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}