public static OrderBy ThenBy(this OrderBy orderBy, FieldRef fieldRef) { List <FieldRef> fields = orderBy.FieldRefs.ToList(); fields.Add(fieldRef); orderBy.FieldRefs = fields; return(orderBy); }
public static GroupBy ThenBy(this GroupBy groupBy, FieldRef fieldRef) { List <FieldRef> fields = groupBy.FieldRefs.ToList(); fields.Add(fieldRef); groupBy.FieldRefs = fields; return(groupBy); }