hi all,
is it possible to get below output using string builder in c# asp.net,
if possible please let me know
my code is:
StringBuilder str = new StringBuilder(); str.Append("hi "welcome", guest");
my expected ouput is:
hi "welcome" guest
thanks in advance
Hi try this
StringBuilder stringBuilder = new StringBuilder(); //First Way stringBuilder.Append(string.Format("{0} {1} {2}", "hi", "welcome", "guest")); //Second Way stringBuilder.AppendFormat("{0} {1} {2}", "hi", "welcome", "guest");
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.