Inheritance: System.IO.StreamReader
Example #1
0
 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;
 }
Example #2
0
 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;
 }