TryReadValue method

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

Implementation

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

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