This is a pretty basic question, but here it goes: Is there a string method in C# that adds a number of characters from a string to another string? In C++ std::string class, there was the append method that had three parameters: source string, indexStart, offset.
string a = "foo";
string b = "bar";
a.append(b, 0, 2); // a is now "fooba";
In C# I also tried with StringBuilder, but no luck.
Strings in .NET are immutable. Once a string is created, you can’t modify it. However, you can create a new string by concatenation, and reassign it to the same variable: