Here are the examples of the csharp api class System.Text.StringBuilder.Append(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
200 Examples
0
1. Example
Project: alphaTab
Source File: StringBuilder.cs
Source File: StringBuilder.cs
public void AppendLine(string s = "") { _sb.Append(s).Append("\r\n"); }
0
2. Example
Project: TESUnity
Source File: NIFParserGenerator.cs
Source File: NIFParserGenerator.cs
private void Generate(string str) { strBuilder.Append(str); }
0
3. Example
Project: commandline
Source File: StringBuilderExtensions.cs
Source File: StringBuilderExtensions.cs
public static StringBuilder AppendWhen(this StringBuilder builder, bool condition, params string[] values) { if (condition) foreach (var value in values) builder.Append(value); return builder; }
0
4. Example
Project: commandline
Source File: StringBuilderExtensions.cs
Source File: StringBuilderExtensions.cs
public static StringBuilder AppendIf(this StringBuilder builder, bool condition, string ifTrue, string ifFalse) { return condition ? builder.Append(ifTrue) : builder.Append(ifFalse); }
0
5. Example
Project: commandline
Source File: StringBuilderExtensions.cs
Source File: StringBuilderExtensions.cs
public static StringBuilder AppendIfNotEmpty(this StringBuilder builder, params string[] values) { foreach (var value in values) if (value.Length > 0) builder.Append(value); return builder; }
0
6. Example
Project: RNGReporter
Source File: CSVWriter.cs
Source File: CSVWriter.cs
protected void GenerateHeader() { foreach (int columnIndex in selectedColumns) { if (dataGrid.Columns[columnIndex].HeaderText == "Flip Sequence") { sb.Append("Flip1\tFlip2\tFlip3\tFlip4\tFlip5\t"); sb.Append("Flip6\tFlip7\tFlip8\tFlip9\tFlip10\t"); } else if (dataGrid.Columns[columnIndex].HeaderText == "IVs (Black & White)") { sb.Append("IV1\tIV2\tIV3\tIV4\tIV5\tIV6\tIV7\tIV8\tIV9\tIV10"); } else sb.Append(dataGrid.Columns[columnIndex].HeaderText + "\t"); } sb.Append(Environment.NewLine); }
0
7. Example
Project: ContinuousTests
Source File: CoreExtensionsTests.cs
Source File: CoreExtensionsTests.cs
public Test Decorate(Test test, MemberInfo member) { sb.Append(name); return test; }
0
8. Example
Project: ContinuousTests
Source File: CoreExtensionsTests.cs
Source File: CoreExtensionsTests.cs
public Test Decorate(Test test, MemberInfo member) { sb.Append(name); return test; }
0
9. Example
Project: ContinuousTests
Source File: CoreExtensionsTests.cs
Source File: CoreExtensionsTests.cs
public Test Decorate(Test test, MemberInfo member) { sb.Append(name); return test; }
0
10. Example
Project: ContinuousTests
Source File: IGenericInstance.cs
Source File: IGenericInstance.cs
public static void GenericInstanceFullName (this IGenericInstance self, StringBuilder builder) { builder.Append ("<"); var arguments = self.GenericArguments; for (int i = 0; i < arguments.Count; i++) { if (i > 0) builder.Append (","); builder.Append (arguments [i].FullName); } builder.Append (">"); }
0
11. Example
Project: ContinuousTests
Source File: IMethodSignature.cs
Source File: IMethodSignature.cs
public static void MethodSignatureFullName (this IMethodSignature self, StringBuilder builder) { builder.Append ("("); if (self.HasParameters) { var parameters = self.Parameters; for (int i = 0; i < parameters.Count; i++) { var parameter = parameters [i]; if (i > 0) builder.Append (","); if (parameter.ParameterType.IsSentinel) builder.Append ("...,"); builder.Append (parameter.ParameterType.FullName); } } builder.Append (")"); }
0
12. Example
Project: QuickUnity
Source File: XmlResultWriter.cs
Source File: XmlResultWriter.cs
private void WriteIndend() { for (int i = 0; i < m_Indend; i++) { m_ResultWriter.Append(" "); } }
0
13. Example
Project: GameCloud.Orleans
Source File: stream_c.cs
Source File: stream_c.cs
static int stmFullPathname( sqlite3_vfs pVfs, /* Pointer to vfs object */ string zRelative, /* Possibly relative input path */ int nFull, /* Size of output buffer in bytes */ StringBuilder zFull /* Output buffer */ ) { string zOut = zRelative; if ( zOut != null ) { // sqlite3_snprintf(pVfs.mxPathname, zFull, "%s", zOut); if ( zFull.Length > pVfs.mxPathname ) zFull.Length = pVfs.mxPathname; zFull.Append( zOut ); // will happen on exit; was free(zOut); return SQLITE_OK; } else { return SQLITE_NOMEM; } }
0
14. Example
Project: GameCloud.Orleans
Source File: stream_c.cs
Source File: stream_c.cs
static int stmFullPathname( sqlite3_vfs pVfs, /* Pointer to vfs object */ string zRelative, /* Possibly relative input path */ int nFull, /* Size of output buffer in bytes */ StringBuilder zFull /* Output buffer */ ) { string zOut = zRelative; if ( zOut != null ) { // sqlite3_snprintf(pVfs.mxPathname, zFull, "%s", zOut); if ( zFull.Length > pVfs.mxPathname ) zFull.Length = pVfs.mxPathname; zFull.Append( zOut ); // will happen on exit; was free(zOut); return SQLITE_OK; } else { return SQLITE_NOMEM; } }
0
15. Example
Project: SF-Boilerplate
Source File: JqGridJavaScriptRenderingHelper.cs
Source File: JqGridJavaScriptRenderingHelper.cs
internal static StringBuilder AppendJavaScriptObjectOpening(this StringBuilder javaScriptBuilder) { return javaScriptBuilder.Append("{"); }
0
16. Example
Project: tracer
Source File: MockLogAdapter.cs
Source File: MockLogAdapter.cs
private static void AddGenericPrettyFormat(StringBuilder sb, Type[] genericArgumentTypes) { sb.Append("<"); for (int i = 0; i < genericArgumentTypes.Length; i++) { sb.Append(genericArgumentTypes[i].Name); if (i < genericArgumentTypes.Length - 1) sb.Append(", "); } sb.Append(">"); }
0
17. Example
Project: tracer
Source File: LoggerAdapter.cs
Source File: LoggerAdapter.cs
private static void AddGenericPrettyFormat(StringBuilder sb, Type[] genericArgumentTypes) { sb.Append("<"); for (int i = 0; i < genericArgumentTypes.Length; i++) { sb.Append(genericArgumentTypes[i].Name); if (i < genericArgumentTypes.Length - 1) sb.Append(", "); } sb.Append(">"); }
0
18. Example
Project: tracer
Source File: LoggerAdapter.cs
Source File: LoggerAdapter.cs
private static void AddGenericPrettyFormat(StringBuilder sb, Type[] genericArgumentTypes) { sb.Append("<"); for (var i = 0; i < genericArgumentTypes.Length; i++) { sb.Append(genericArgumentTypes[i].Name); if (i < genericArgumentTypes.Length - 1) sb.Append(", "); } sb.Append(">"); }
0
19. Example
Project: tracer
Source File: LoggerAdapter.cs
Source File: LoggerAdapter.cs
private static void AddGenericPrettyFormat(StringBuilder sb, Type[] genericArgumentTypes) { sb.Append("<"); for (var i = 0; i < genericArgumentTypes.Length; i++) { sb.Append(genericArgumentTypes[i].Name); if (i < genericArgumentTypes.Length - 1) sb.Append(", "); } sb.Append(">"); }
0
20. Example
Project: tracer
Source File: LoggerAdapter.cs
Source File: LoggerAdapter.cs
private static void AddGenericPrettyFormat(StringBuilder sb, Type[] genericArgumentTypes) { sb.Append("<"); for (var i = 0; i < genericArgumentTypes.Length; i++) { sb.Append(genericArgumentTypes[i].Name); if (i < genericArgumentTypes.Length - 1) sb.Append(", "); } sb.Append(">"); }
0
21. Example
Project: BoC
Source File: Container.cs
Source File: Container.cs
public static StringBuilder Print(this StringBuilder s, string str, string quote = null) { return quote == null ? s.Append(str) : s.Append(quote).Append(str).Append(quote); }
0
22. Example
Project: cat.net
Source File: AbstractMessage.cs
Source File: AbstractMessage.cs
public virtual void AddData(String keyValuePairs) { try { // No meaning to add null as data. if (null == keyValuePairs) return; if (_mData == null) { _mData = new StringBuilder(keyValuePairs); } else { _mData.Append(keyValuePairs); } } catch (Exception ex) { Cat.lastException = ex; } }
0
23. Example
Project: Unity3D.Amqp
Source File: autogenerated-api-0-9-1.cs
Source File: autogenerated-api-0-9-1.cs
public override void AppendArgumentDebugStringTo(System.Text.StringBuilder sb) { sb.Append("("); sb.Append(")"); }
0
24. Example
Project: Unity3D.Amqp
Source File: autogenerated-api-0-9-1.cs
Source File: autogenerated-api-0-9-1.cs
public override void AppendArgumentDebugStringTo(System.Text.StringBuilder sb) { sb.Append("("); sb.Append(m_reason); sb.Append(")"); }
0
25. Example
Project: Unity3D.Amqp
Source File: autogenerated-api-0-9-1.cs
Source File: autogenerated-api-0-9-1.cs
public override void AppendArgumentDebugStringTo(System.Text.StringBuilder sb) { sb.Append("("); sb.Append(m_consumerTag); sb.Append(")"); }
0
26. Example
Project: Taurus.MVC
Source File: Controller.cs
Source File: Controller.cs
public void Write(string msg) { apiResult.Append(msg); }
0
27. Example
Project: AsyncFriendlyStackTrace
Source File: StackTraceExtensions.cs
Source File: StackTraceExtensions.cs
private static void FormatGenericArguments(StringBuilder stringBuilder, Type[] genericArguments) { stringBuilder.Append("["); var k = 0; var firstTypeParam = true; while (k < genericArguments.Length) { if (!firstTypeParam) { stringBuilder.Append(","); } else { firstTypeParam = false; } stringBuilder.Append(genericArguments[k].Name); k++; } stringBuilder.Append("]"); }
0
28. Example
Project: RoslynPad
Source File: StackTraceExtensions.cs
Source File: StackTraceExtensions.cs
private static void FormatGenericArguments(StringBuilder stringBuilder, Type[] genericArguments) { stringBuilder.Append("["); var k = 0; var firstTypeParam = true; while (k < genericArguments.Length) { if (!firstTypeParam) { stringBuilder.Append(","); } else { firstTypeParam = false; } stringBuilder.Append(genericArguments[k].Name); k++; } stringBuilder.Append("]"); }
0
29. Example
Project: Nancy.Hal
Source File: UriTemplate.cs
Source File: UriTemplate.cs
void AppendName(string variable, OperatorInfo op, bool valueIsEmpty) { this._Result.Append(variable); if (valueIsEmpty) { this._Result.Append(op.IfEmpty); } else { this._Result.Append("="); } }
0
30. Example
Project: finite-graph-machine
Source File: XmlResultWriter.cs
Source File: XmlResultWriter.cs
private void WriteIndend() { for (int i = 0; i < m_Indend; i++) { m_ResultWriter.Append(" "); } }
0
31. Example
Project: sqlsharpener
Source File: TextBuilder.cs
Source File: TextBuilder.cs
private void AppendIndent() { if (indent > 0) { var tabs = new String('\t', indent); this.StringBuilder.Append(tabs); } }
0
32. Example
Project: PhotonSharp
Source File: CodePrinter.cs
Source File: CodePrinter.cs
public void BeginLine() { _builder.Append(_indend); }
0
33. Example
Project: PhotonSharp
Source File: CodePrinter.cs
Source File: CodePrinter.cs
public void EndLine() { _builder.Append("\n"); }
0
34. Example
Project: daxnet-blog
Source File: WhereClauseBuilder.cs
Source File: WhereClauseBuilder.cs
private void Out(string s) { sb.Append(s); }
0
35. Example
Project: we-text
Source File: WhereClauseBuilder.cs
Source File: WhereClauseBuilder.cs
private void Out(string s) { sb.Append(s); }
0
36. Example
Project: DotNet.Glob
Source File: GlobToRegexFormatter.cs
Source File: GlobToRegexFormatter.cs
public void Visit(WildcardDirectoryToken wildcardDirectoryToken) { _stringBuilder.Append(".*"); if(wildcardDirectoryToken.TrailingPathSeperator != null) { _stringBuilder.Append(@"[/\\]"); } }
0
37. Example
Project: DotNet.Glob
Source File: GlobToRegexFormatter.cs
Source File: GlobToRegexFormatter.cs
void IGlobTokenVisitor.Visit(PathSeperatorToken token) { _stringBuilder.Append(@"[/\\]"); }
0
38. Example
Project: DotNet.Glob
Source File: GlobToRegexFormatter.cs
Source File: GlobToRegexFormatter.cs
void IGlobTokenVisitor.Visit(AnyCharacterToken token) { _stringBuilder.Append(@"[^/\\]{1}"); }
0
39. Example
Project: DotNet.Glob
Source File: GlobToRegexFormatter.cs
Source File: GlobToRegexFormatter.cs
void IGlobTokenVisitor.Visit(WildcardToken token) { _stringBuilder.Append(@"[^/\\]*"); }
0
40. Example
Project: iMessageStickerUnity
Source File: Utils.cs
Source File: Utils.cs
public void WriteStringBuilder(StringBuilder sb, string guid) { string comment = this[guid]; if (comment == null) sb.Append(guid); else { // {0} /* {1} */ sb.Append(guid).Append(" /* ").Append(comment).Append(" */"); } }
0
41. Example
Project: iMessageStickerUnity
Source File: JsonParser.cs
Source File: JsonParser.cs
void AppendIndent(StringBuilder sb, int indent) { for (int i = 0; i < indent; ++i) sb.Append(indentString); }
0
42. Example
Project: iMessageStickerUnity
Source File: JsonParser.cs
Source File: JsonParser.cs
void WriteBoolean(StringBuilder sb, bool value) { sb.Append(value ? "true" : "false"); }
0
43. Example
Project: OutlookPrivacyPlugin
Source File: DistributionPoint.cs
Source File: DistributionPoint.cs
private void appendObject( StringBuilder buf, string sep, string name, string val) { string indent = " "; buf.Append(indent); buf.Append(name); buf.Append(":"); buf.Append(sep); buf.Append(indent); buf.Append(indent); buf.Append(val); buf.Append(sep); }
0
44. Example
Project: OutlookPrivacyPlugin
Source File: DistributionPointName.cs
Source File: DistributionPointName.cs
private void appendObject( StringBuilder buf, string sep, string name, string val) { string indent = " "; buf.Append(indent); buf.Append(name); buf.Append(":"); buf.Append(sep); buf.Append(indent); buf.Append(indent); buf.Append(val); buf.Append(sep); }
0
45. Example
Project: OutlookPrivacyPlugin
Source File: IssuingDistributionPoint.cs
Source File: IssuingDistributionPoint.cs
private void appendObject( StringBuilder buf, string sep, string name, string val) { string indent = " "; buf.Append(indent); buf.Append(name); buf.Append(":"); buf.Append(sep); buf.Append(indent); buf.Append(indent); buf.Append(val); buf.Append(sep); }
0
46. Example
Project: OutlookPrivacyPlugin
Source File: InternetAddressList.cs
Source File: InternetAddressList.cs
internal void Encode (FormatOptions options, StringBuilder builder, ref int lineLength) { for (int i = 0; i < list.Count; i++) { if (i > 0) builder.Append (", "); list[i].Encode (options, builder, ref lineLength); } }
0
47. Example
Project: msgpack-unity3d
Source File: JsonStringBuilderWriter.cs
Source File: JsonStringBuilderWriter.cs
public override void WriteJson(string jsonString) { if (jsonString == null) throw new ArgumentNullException("jsonString"); stringBuilder.Append(jsonString); this.CharactersWritten += jsonString.Length; }
0
48. Example
Project: DevExpress.Mvvm.Free
Source File: FunctionBindingBehaviorTests.cs
Source File: FunctionBindingBehaviorTests.cs
public override void Write(string message) { output.Append(message); }
0
49. Example
Project: Phalanger
Source File: RegExpPosix.cs
Source File: RegExpPosix.cs
private void WriteOutWordBoundary(ref StringBuilder output) { if (buffer[parts[0]] == '<') { // beginning of word output.Append(@"\b(?=\w)"); } else { // end of word output.Append(@"\b(?<=\w)"); } }
0
50. Example
Project: Phalanger
Source File: Scanner.cs
Source File: Scanner.cs
private void StoreEncapsedString(string str) { tokenSemantics.Integer = str.Length; tokenSemantics.Offset = encapsedStringBuffer.Length; encapsedStringBuffer.Append(str); }