c# example – stringbuilder append.
C# Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
class Program { static void Main(string[] args) { StringBuilder stringb = new StringBuilder(); stringb.Append("this is a string."); stringb.Append(" [ "); stringb.Append('A'); stringb.Append(" ] "); stringb.Append(". this is another string"); Console.WriteLine( stringb.ToString()); Console.ReadLine(); } } |
Output: