【发布时间】:2013-11-28 23:44:59
【问题描述】:
我正在学习 C 和 C#,这个问题是针对 C# 的。这个问题是书上的代码,代码没有编译,错误是:Error CS1729: The type System.Collections.Generic.List<string>' does not contain a constructor that takes5' arguments。
代码如下:
public static void Main (string[] args)
{
List<string> names = new List<string>("Christa ",
" Sarah",
"Jonathan",
"Sam",
" Schmekowitz");
【问题讨论】:
标签: c# list constructor compiler-errors