ReadElementValue<T> method

Future<T?> ReadElementValue<T>()
Reads the element value.

Implementation

Future<T?> ReadElementValue<T>() async {
  this.EnsureCurrentNodeIsStartElement();

  String namespacePrefix = this.NamespacePrefix;
  String localName = this.LocalName;

  T? value = null;

  if (!this.IsEmptyElement) {
    value = await this.ReadValue<T>();
  }

  return value;
}