public override string ToString()
{
if (invariant) {
if (invariant_result)
return "PivotsExpression.TrueExpression";
else
return "PivotsExpression.FalseExpression";
}
StringBuilder res = new StringBuilder();
bool first_combination = true;
foreach (var combination in matching_combinations) {
if (!first_combination)
res.Append("|");
res.Append("(");
bool first_value = true;
foreach (var item in combination) {
if (!first_value)
res.Append(",");
res.Append(item);
first_value = false;
}
res.Append(")");
first_combination = false;
}
return res.ToString();
}