コード例 #1
0
 public DelimitedTextDataset(
     string folderName,
     string fileName,
     string folderPath = default,
     ColumnDelimiter columnDelimiter   = default,
     RowDelimiter rowDelimiter         = default,
     EncodingName encodingName         = default,
     CompressionCodec compressionCodec = default,
     CompressionLevel compressionLevel = default,
     QuoteChar quoteChar         = default,
     EscapeChar escapeChar       = default,
     bool firstRowAsHeader       = false,
     string nullValue            = default,
     IList <SchemaColumn> schema = default)
 {
     FolderName       = folderName;
     FileName         = fileName;
     FolderPath       = folderPath;
     ColumnDelimiter  = columnDelimiter;
     RowDelimiter     = rowDelimiter;
     EncodingName     = encodingName;
     CompressionCodec = compressionCodec;
     CompressionLevel = compressionLevel;
     QuoteChar        = quoteChar;
     EscapeChar       = escapeChar;
     FirstRowAsHeader = firstRowAsHeader;
     NullValue        = nullValue;
     Schema           = schema;
 }
コード例 #2
0
        public static string ColumnDelimiterToString(ColumnDelimiter Coldelimiter)
        {
            string strRet = string.Empty;

            switch (Coldelimiter)
            {
            case ColumnDelimiter.CarriageReturnLineFeed:
                strRet = System.Environment.NewLine;
                break;

            case ColumnDelimiter.CarriageReturn:
                strRet = "\r";
                break;

            case ColumnDelimiter.LineFeed:
                strRet = "\n";
                break;

            case ColumnDelimiter.Semicolon:
                strRet = ";";
                break;

            case ColumnDelimiter.Colon:
                strRet = ":";
                break;

            case ColumnDelimiter.Comma:
                strRet = ",";
                break;

            case ColumnDelimiter.Tab:
                strRet = "\t";
                break;

            case ColumnDelimiter.VerticalBar:
                strRet = "|";
                break;

            default:
                strRet = "";
                break;
            }

            return(strRet);
        }
コード例 #3
0
 private void RaiseUpdateColumnDelimiterRequest(ColumnDelimiter obj)
 {
     CsvFileColumns = GetCsvColumns();
     OnPropertyChanged("IsCustomDelimiterSelected");
 }