1,初始化直接赋值
List<string> unlocList = new List<string>
{
"CNNKG",
"CNSHH-CNSHA-CNSGH",
"USLAX-USLGB"
};
2,list.add()的方式
List<string> unlocList = new List<string>();
unlocList .Add("CNNKG");
unlocList .Add("CNSHH-CNSHA-CNSGH");
unlocList .Add("USLAX-USLGB");