Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/16 07:45:45 (8 years ago)
Author:
gkronber
Message:

#2650: another small fix in the C# formatter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionCSharpFormatter.cs

    r14501 r14502  
    219219      strBuilder.Append(string.Join(", ", orderedNames));
    220220
     221      if (stringVarNames.Any() && doubleVarNames.Any())
     222        strBuilder.AppendLine(",");
    221223      orderedNames = doubleVarNames.OrderBy(n => n, new NaturalStringComparer()).Select(n => "double " + VariableName2Identifier(n) + " /* " + n + " */");
    222224      strBuilder.Append(string.Join(", ", orderedNames));
     
    229231    private void GenerateFooter(StringBuilder strBuilder) {
    230232      strBuilder.AppendLine(";");
     233
    231234      strBuilder.AppendLine("return result;");
    232235      strBuilder.AppendLine("}");
Note: See TracChangeset for help on using the changeset viewer.