public string TranslateGroup(SortGroup group) { var builder = new StringBuilder(); for (var i = 0; i < group.SortRules.Count; i++) { var rule = group.SortRules[i]; builder.Append(TranslateRule(rule)); if (i != group.SortRules.Count - 1) { builder.Append(','); } } return(builder.ToString()); }
public SortTranslator(SortGroup group) { Group = group; }