コード例 #1
0
        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());
        }
コード例 #2
0
 public SortTranslator(SortGroup group)
 {
     Group = group;
 }