S
Steeve
Hi,
I found a way to get result than I want with this anonymus method. But,
it's a little weird to use a anonymus methods in another anonymus
methods. Moreover, i have a performance issue. How can I resolve this ?
Note : NodeList is a List<Node> and ArcSuccList is a List<Arc>
Node findedNode = this.NodeList.Find(delegate(Node n)
{
if (n.Visited == true)
{ return false; }
else
{
return n.ArcSuccList.TrueForAll(delegate(Arc a)
{
return a.Visited == true;
});
}
});
Thanks,
Steeve
I found a way to get result than I want with this anonymus method. But,
it's a little weird to use a anonymus methods in another anonymus
methods. Moreover, i have a performance issue. How can I resolve this ?
Note : NodeList is a List<Node> and ArcSuccList is a List<Arc>
Node findedNode = this.NodeList.Find(delegate(Node n)
{
if (n.Visited == true)
{ return false; }
else
{
return n.ArcSuccList.TrueForAll(delegate(Arc a)
{
return a.Visited == true;
});
}
});
Thanks,
Steeve