Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
          }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #Stringbuilder
ADD COMMENT
Topic
Name
1+3 =