public void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) { if (encoding != null) { reader = new PushbackReader(stream, encoding); } else { reader = new PushbackReader(stream); } if (quotas == null) { throw new ArgumentNullException("quotas"); } this.quotas = quotas; this.on_close = onClose; }
public void SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) { if (encoding != null) reader = new PushbackReader (stream, encoding); else reader = new PushbackReader (stream); if (quotas == null) throw new ArgumentNullException ("quotas"); this.quotas = quotas; this.on_close = onClose; }