I have this code
public class NodeList
{
public NodeList() : base() { }
public NodeList(int initialSize)
{ // Add the specified number of items
for (int i = 0; i < initialSize; i++)
base.Items.Add(default(Node
}
public Node
{ // search the list for the value
foreach (Node
if (node.Value.Equals(value)) return node;
// if we reached here, we didn't find a matching node
return null;
}
}
source : http://msdn.microsoft.com/en-US/library/ms379572(v=vs.80).aspx
in visual studio 2010 c# language it gives me an error in
public class NodeList
so I change it to ICollection
and then the error jump to base.items , exactly with items
so what is wrong ... it is from msdn.microsoft
akshat goelPosted Apr 13, 2014, 6:41 PM
Abdelbasset BarkatPosted Apr 13, 2014, 6:13 PM
akshat goelPosted Apr 13, 2014, 5:50 PM
You will need to define the Public class Node<> for this..
You just missed this code from the MSDN link..