private static void AppendValueWithSeparatorIfRequired(StringBuilder sb, string value) { if (sb.Length > 0) { sb.Append(", "); } sb.Append(value); }