ReadElementValue<T> method

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

Implementation

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

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

  T? value = null;

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

  return value;
}