XmlDataReader Constructor
Definition
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
readerXmlReaderThe XmlReader object that contains the XML data.
parserFunc<string, object>The function delegate that returns a primitive object whose value is equivalent to the provided string value. Default is FromValueType().
setupAction<FormattingOptions>The FormattingOptions which may be configured.
Exceptions
- ArgumentNullException
readeris null.