English 中文(简体)
不能适用明示制度指数。
原标题:cannot apply index on expresstion system.collections.generic.linkedlist<T>

我做了一个班子:

public class Node
{
    public int Id { get; set; }
    public string Name { get; set;}
    public List<Node> Successor { get; set; }

}

在某些方法中,我想采取以下行动:

partice.path= new  LinkedList<Node>();

但是,可以达到“(......)”方法和其他延伸。

p.:以上所有课程都设在银灯类图书馆,不知道与错误有关。

最佳回答

不清楚你是否根据您的<代码>Node 声明重新使用框架类别(如标题所建议的)或贵国的类别。

如果你重新使用框架课程,确保包括:

using System.Linq;

页: 1 此外,确保在其项目中提及<代码>System.Core.dll。

如果你重新使用自己的类别,并且你希望使用http://msdn.microsoft.com/en-us/library/bb299233.aspx” rel=“nofollow” 。 IEvidable<T>。

尽管如此,您不妨仅使用以下框架:LinkedList<T>。 a. 课程,而不是自行推出......

问题回答

暂无回答




相关问题
Howto get started with C# 4.0 and .NET 4.0?

I don t want to download Visual Studio 2010. How can I start studying (not developing real applications) C# 4.0 and .NET 4.0 with just a text editor? Can I just download C# 4.0 compiler and .NET 4.0 ...

Mocking Framework with C# 4.0 Support?

Anybody know of a mocking framework that supports C# 4.0? Doesn t matter which one ATM, just need something that will work.

Unit Testing interface contracts in C#

Using the Code Contracts tools available in VS2010 Beta 2, I have defined an interface, a contract class for that interface and two classes that implement the interface. Now when I come to test the ...

How to Iterate Through Array in C# Across Multiple Calls

We have an application where we need to de-serialize some data from one stream into multiple objects. The Data array represents a number of messages of variable length packed together. There are no ...

IronPython ScriptRuntime equivalent to CPython PYTHONPATH

The following import works inside ipy.exe prompt but fails using IronPython ScriptRuntime inside a C# 4.0 program. import ConfigParser C# code: using System; using System.Collections.Generic; using ...

i cant understand the following code

Matrix<float> trainData2 = trainData.GetRows(intVar >> 1, intVar, 1); intVar is integer type... please help me to understand this code.

热门标签