internal ResourceTextReader(TranslationFileType fileType, Stream stream) { _delimiter = LocBamlConst.GetDelimiter(fileType); if (stream == null) { throw new ArgumentNullException("stream"); } _reader = new StreamReader(stream); }
//------------------------------- // constructor //------------------------------- internal ResourceTextWriter(FileType fileType, Stream output) { _delimiter = LocBamlConst.GetDelimiter(fileType); if (output == null) { throw new ArgumentNullException("output"); } // show utf8 byte order marker UTF8Encoding encoding = new UTF8Encoding(true); _writer = new StreamWriter(output, encoding); _firstColumn = true; }