📜  c# 添加字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.488000             🧑  作者: Mango

代码示例1
string value = "cat ";
        
// Step 1: append a word to the string.
value += "and ";
Console.WriteLine(value);
        
// Step 2: append another word.
value += "dog";
Console.WriteLine(value);

//OUTPUT:
cat and 
cat and dog