public void WriteString(string str) { MaybeAddComma(); if (str == null) { _builder.Append("0"); } else { _builder.Append("1"); _builder.Append(CsvUtil.EscapeString(str)); } }