Table of Contents

XmlDataReader Constructor

Definition

Namespace
Cuemon.Data.Xml
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/Xml/XmlDataReader.cs

XmlDataReader(XmlReader, Func<string, object>, Action<FormattingOptions>)

Initializes a new instance of the XmlDataReader class.

public XmlDataReader(XmlReader reader, Func<string, object> parser = null, Action<FormattingOptions> setup = null)

Parameters

reader XmlReader

The XmlReader object that contains the XML data.

parser Func<string, object>

The function delegate that returns a primitive object whose value is equivalent to the provided string value. Default is FromValueType().

setup Action<FormattingOptions>

The FormattingOptions which may be configured.

Exceptions

ArgumentNullException

reader is null.