CS.NET - Working with StringBuilder



Returning a string with delimiter seperated from string builder


public  string PassSBR(string[] arr)
        {
            var builder = new System.Text.StringBuilder();
            try
            {
                foreach (string s in arr)
                {
                    builder.Append(s).Append(";");
                }
            }
            catch (Exception ex)
            {
          Response.Write(ex.ToString());
            }
            return builder.ToString(); // Has ending ;difference
        }

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.