Here are the examples of the csharp api System.Text.StringBuilder.AppendSeparator() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : ActivityLoggerHelpers.cs
with MIT License
from microsoft
with MIT License
from microsoft
public static StringBuilder AppendPairs<T>(this StringBuilder builder, IEnumerable<KeyValuePair<string, T>> pairs)
{
builder.AppendArrayStart();
bool isFirst = true;
foreach (KeyValuePair<string, T> pair in pairs)
{
if (!isFirst)
{
builder.AppendSeparator();
}
builder
.AppendObjStart()
.AppendParamName(pair.Key)
.Append(pair.Value)
.AppendObjEnd();
}
builder.AppendArrayEnd();
return builder;
}