Answers for "what is stringbuilder in c#"

C#
0

for loop Stringbuilder c#

StringBuilder sb = new StringBuilder();
     sb.Append("Ola~");
     sb.Append("Jola~");  
     sb.Append("Zosia~");

 //foreach loop ver sb object

  foreach(string s in sb.ToString().Split('~')){
         Console.WriteLine(s);
          }
Posted by: Guest on November-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language