private void Initialize (IXmlDictionary dictionary,
XmlDictionaryReaderQuotas quotas,
XmlBinaryReaderSession session,
OnXmlDictionaryReaderClose onClose)
{
if (quotas == null)
throw new ArgumentNullException ("quotas");
if (dictionary == null)
dictionary = new XmlDictionary ();
this.dictionary = dictionary;
this.quota = quotas;
if (session == null)
session = new XmlBinaryReaderSession ();
this.session = session;
on_close = onClose;
NameTable nt = new NameTable ();
this.context = new XmlParserContext (nt,
new XmlNamespaceManager (nt),
null, XmlSpace.None);
current = node = new NodeInfo ();
current.Reset ();
node_stack.Add (node);
}