using System;
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<string> list=new List<string>(){"asssd"};
Console.WriteLine(list[0]);
Console.ReadKey();
}
}
}
报错:List<string>()后面的两个大括号底下出现波浪线,错误列表里说1 应输入;
2 应输入;把List<string>()中()去掉
报错:new 表达式要求在类型后有 ()或[]请帮助解决,谢谢
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List<string> list=new List<string>(){"asssd"};
Console.WriteLine(list[0]);
Console.ReadKey();
}
}
}
报错:List<string>()后面的两个大括号底下出现波浪线,错误列表里说1 应输入;
2 应输入;把List<string>()中()去掉
报错:new 表达式要求在类型后有 ()或[]请帮助解决,谢谢
此消息通过 【CSDN论坛 Winform测试版】 回复!