Thursday, 1 November 2012

How to: Join Multiple Strings (C# Programming Guide)

How to: Join Multiple Strings (C# Programming Guide) 


string two = "karan";
string str = "chanana " + karan + "k";
System.Console.WriteLine(str);

The following code uses the Append method of the StringBuilder class to join three strings without the chaining effect of the + operator.

class StringBuilderTest
{
    static void Main()
    {
        string karan = "karan";

        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        sb.Append("chanana ");
        sb.Append(karan);
        sb.Append(" k");
        System.Console.WriteLine(sb.ToString());

        string str = sb.ToString();
        System.Console.WriteLine(str);
    }
}



Tag , karan chanana , c , c++ , karan


Karan is an Indian . He started his career as child actor under the name Master Raghu for more than 20 films in Malayalam. and Kuyiline Thedi were huge hits. After a few years he made his debut as an adul starring opposite . Then he was a part of many films, especially starring  and . In the year 2006, Karan became a solo hero with and continued with films like Karuppusamy and His forthcoming films are Kantha and Sooran.