Linq with Link List
-
Hi, I am having custome Link List object. Which manages nodes and searching using while loop (node.next()). I am new to Linq Is Linq can be used with my Link List object to avoid loops? :doh: Thanks Regards Khaniya Sunil
-
If I understand your question correct - yes, you can use Linq to search a List (using Linq to Objects). For an example, have a look at this. Good luck :)
-
hi Calla Thanks for your response Actually I am talking about custom Liked List(data structure). where nodes are connected via reference to each other We are having reference of only first node. Thanks
You can use linq only on those objects which can be treated as a collection of objects. You can read your link list at a time and store it in a list or array and then you can apply linq query to them.
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.
-
You can use linq only on those objects which can be treated as a collection of objects. You can read your link list at a time and store it in a list or array and then you can apply linq query to them.
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.