【发布时间】:2022-08-08 23:57:21
【问题描述】:
private List<string> _listOfWords = new List<string>();
_listOfWords.Add(\"tell\", \"hey\");
//Why does not this work? I can add one item but not multiple
-
没有超载
-
因为这就是Add 方法的工作原理。当您不确定/不熟悉某个方法的工作原理时,请务必查看文档。
标签: c#