我遇到了以下编译器错误,不知道该怎么办:
System.Windows.Document.List是一个"Type"总线,与"variable"一样使用
这是消息的来源代码:
public blabla this[int index]
{
get {return (blabla)List(Index);}
set {List(Index) = value;}
}
我用VB写了这段代码,并试图让它在c#中运行。知道如何解决这个问题吗?
在C#中,访问Collection特定项目的方式是:
List[Index]
在VB:中
List(Index)
请在MSDN 上查看此处