static public XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose) { XmlMtomReader reader = new XmlMtomReader(); reader.SetInput(buffer, offset, count, encodings, contentType, quotas, maxBufferSize, onClose); return reader; }
static public XmlDictionaryReader CreateMtomReader(Stream stream, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas, int maxBufferSize, OnXmlDictionaryReaderClose onClose) { XmlMtomReader reader = new XmlMtomReader(); reader.SetInput(stream, encodings, contentType, quotas, maxBufferSize, onClose); return reader; }