📜  c# 字符串数组初始化 - C# 代码示例

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

代码示例2
string[] items = { "Item1", "Item2", "Item3", "Item4" };

string[] items = new string[]
{
  "Item1", "Item2", "Item3", "Item4"
};

string[] items = new string[10];
items[0] = "Item1";
items[1] = "Item2"; // ...