StringBuilder sb = new StringBuilder(); sb.Append("Hello "); sb.Append("world!"); string result = sb.ToString(); // Output: "Hello world!"
string greeting = "Hello "; string name = "Alice"; string result = greeting + name + "!"; // Output: "Hello Alice!"The package library used in these examples is most likely the System.Text namespace, which provides classes for encoding, decoding, and manipulating strings of Unicode characters.