GetDelimiter() static private method

static private GetDelimiter ( FileType fileType ) : char
fileType FileType
return char
Example #1
0
        internal ResourceTextReader(TranslationFileType fileType, Stream stream)
        {
            _delimiter = LocBamlConst.GetDelimiter(fileType);
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            _reader = new StreamReader(stream);
        }
Example #2
0
        //-------------------------------
        // 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;
        }