GetDelimiter() static private méthode

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

            _reader = new StreamReader(stream);
        }
Exemple #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;
        }