Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
用字符串初始化列表的最简单方法是什么?说我有一个
String a="a" List<string> b;
如何用字符串“a”初始化 b?
var b = new List<string> {a};
String a = "a"; List<string> b = new List<string>{a};