using System;
using System.Collections.Generic;
using System.Text;
namespace HowTo
{
class Variables
{
private List<recMessage> = new List<recMessage>();
}
}
Error 1 Invalid token '=' in class, struct, or interface member declaration G:\GPRS\How-To Using the Comm Port_CS\How-To Using the Comm Port_CS\Variables.cs 9 34 How-To Using the Comm Port_CS
这个错误来自哪里?我已经做了十次,没有这个问题。C#,无效标记'='
叫什么名字你想要声明的变量? – 2013-04-09 12:52:13
你需要一个名字:private List name = new List (); –
TheKingDave
2013-04-09 12:52:13
你需要给你的变量命名,就像'私人列表 messages = new List ();' –
2013-04-09 12:52:27