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; }
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); }
private void RaiseUpdateColumnDelimiterRequest(ColumnDelimiter obj) { CsvFileColumns = GetCsvColumns(); OnPropertyChanged("IsCustomDelimiterSelected"); }