StringBuilder installBuilder = new StringBuilder();
installBuilder.Append(installRoot);
if (!installRoot.EndsWith("\\", StringComparison.Ordinal))
- installBuilder.Append("\\");
+ installBuilder.Append('\\');
installBuilder.Append(version);
dllDir = installBuilder.ToString();
}
stringBuilder
.Append(indent)
.Append(child.Key)
- .Append("=")
+ .Append('=')
.Append(valueAndProvider.Value)
.Append(" (")
.Append(valueAndProvider.Provider)
public CallSiteFormatterContext StartObject()
{
- Builder.Append("{");
+ Builder.Append('{');
return IncrementOffset();
}
public void EndObject()
{
- Builder.Append("}");
+ Builder.Append('}');
}
public void StartProperty(string name)
{
if (!_firstItem)
{
- Builder.Append(",");
+ Builder.Append(',');
}
else
{
{
if (!_firstItem)
{
- Builder.Append(",");
+ Builder.Append(',');
}
else
{
public CallSiteFormatterContext StartArray()
{
- Builder.Append("[");
+ Builder.Append('[');
return IncrementOffset();
}
public void EndArray()
{
- Builder.Append("]");
+ Builder.Append(']');
}
}
}
if (_shouldRedactHeaderValue(kvp.Key))
{
- builder.Append("*");
+ builder.Append('*');
builder.AppendLine();
}
else
// category and event id
logBuilder.Append(_loglevelPadding);
logBuilder.Append(logName);
- logBuilder.Append("[");
+ logBuilder.Append('[');
logBuilder.Append(eventId);
logBuilder.AppendLine("]");
// category and event id
logBuilder.Append(logName);
- logBuilder.Append("[");
+ logBuilder.Append('[');
logBuilder.Append(eventId);
- logBuilder.Append("]");
+ logBuilder.Append(']');
// scope information
GetScopeInformation(logBuilder, multiLine: false);
'
Do
- arraySuffix.Append("(")
+ arraySuffix.Append("("c)
arraySuffix.Append(","c, typ.GetArrayRank() - 1)
- arraySuffix.Append(")")
+ arraySuffix.Append(")"c)
typ = typ.GetElementType
End If
Next
- genericArgsSuffix.Append(")")
+ genericArgsSuffix.Append(")"c)
Return genericArgsSuffix.ToString
End Function
sTmp = sb.ToString()
sb.Append(";(")
sb.Append(sTmp)
- sb.Append(")")
+ sb.Append(")"c)
End If
Return sb.ToString()
{
if (specialCharacters.IndexOf(currentChar) >= 0)
{
- escapedString.Append("\\");
+ escapedString.Append('\\');
}
escapedString.Append(currentChar);
}
{
if (specialCharacters.IndexOf(currentChar) >= 0)
{
- escapedString.Append("\\");
+ escapedString.Append('\\');
}
escapedString.Append(currentChar);
}
bool fileNameIsQuoted = (fileName.StartsWith('\"') && fileName.EndsWith('\"'));
if (!fileNameIsQuoted)
{
- commandLine.Append("\"");
+ commandLine.Append('"');
}
commandLine.Append(fileName);
if (!fileNameIsQuoted)
{
- commandLine.Append("\"");
+ commandLine.Append('"');
}
if (!string.IsNullOrEmpty(arguments))
{
StringBuilder sb = new StringBuilder("\"");
EscapeMessage(message, sb);
- sb.Append("\"");
+ sb.Append('"');
Write(sb.ToString());
}
}
EscapeMessage(operation, sb);
}
- sb.Append("\"");
+ sb.Append('"');
Write(sb.ToString());
}
if (domainName != null && domainName.Length != 0)
{
tempDomainName.Append(domainName);
- tempDomainName.Append("\\");
+ tempDomainName.Append('\\');
}
tempDomainName.Append(username);
StringBuilder sb = new StringBuilder("HttpListenerRequest Headers:\n");
for (int i = 0; i < Headers.Count; i++)
{
- sb.Append("\t");
+ sb.Append('\t');
sb.Append(Headers.GetKey(i));
sb.Append(" : ");
sb.Append(Headers.Get(i));
- sb.Append("\n");
+ sb.Append('\n');
}
NetEventSource.Info(this, sb.ToString());
}
StringBuilder sb = new StringBuilder("HttpListenerResponse Headers:\n");
for (int i = 0; i < Headers.Count; i++)
{
- sb.Append("\t");
+ sb.Append('\t');
sb.Append(Headers.GetKey(i));
sb.Append(" : ");
sb.Append(Headers.Get(i));
- sb.Append("\n");
+ sb.Append('\n');
}
if (NetEventSource.IsEnabled) NetEventSource.Info(this, sb.ToString());
}
{
NewLine();
_indentLevel++;
- _w.Append("[");
+ _w.Append('[');
_w.Append(name);
}
protected void WriteEndElement()
StringBuilder writer = new StringBuilder();
writer.Append("@\"");
writer.Append(GetCSharpString(value));
- writer.Append("\"");
+ writer.Append('"');
return writer.ToString();
}
{
strBuilder.Append(" " + Name + "=\"");
strBuilder.Append(Utils.EscapeAttributeValue(Value));
- strBuilder.Append("\"");
+ strBuilder.Append('"');
}
public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc)