Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

Changed MergeOps.CreateTabularTextFile includeHeaderRow parameter to
omitHeaderRow.

Changeset 452f211b7a81

Parent a6291f3906dc

by Profile picture of William GrossWilliam Gross

Changes to one file · Browse files at 452f211b7a81 Showing diff from parent a6291f3906dc Diff from another changeset...

 
209
210
211
212
 
213
214
215
 
221
222
223
224
 
225
226
227
 
209
210
211
 
212
213
214
215
 
221
222
223
 
224
225
226
227
@@ -209,7 +209,7 @@
  /// specified in the list of field names.   /// </summary>   public static void CreateTabularTextFile( - MergeRowTree rowTree, IEnumerable<string> fieldNames, TextWriter destinationWriter, bool useTabAsSeparator = false, bool includeHeaderRow = true ) { + MergeRowTree rowTree, IEnumerable<string> fieldNames, TextWriter destinationWriter, bool useTabAsSeparator = false, bool omitHeaderRow = false ) {   if( !rowTree.Rows.Any() )   return;   @@ -221,7 +221,7 @@
    var writer = useTabAsSeparator ? (TabularDataFileWriter)new TabDelimitedFileWriter() : new CsvFileWriter();   - if( includeHeaderRow ) { + if( !omitHeaderRow ) {   writer.AddValuesToLine(   fieldNames.Select( fieldName => rowTree.Rows.First().Values.Single( i => i.Name == fieldName ) ).Select( mergeValue => (object)mergeValue.Name ).ToArray() );   writer.WriteCurrentLineToFile( destinationWriter );