Linq Support for FindAll #278
-
Given the following Example:
Notice I know that the p element i'm looking for is the second one in the dom, is there a way of doing something like this:
I'm assuming that given that the only useful looking property to even think about querying the collection on IRefreshableElementCollection is count, the closest i can get to this is by looping and applying an index until .ToHtml returns the content i'm looking for, therefore I could create a extension method to acheive this locally for me, but I don't understand why it's not included as standard? If i was to do a PR to add querying support to the element collection/ expose a list would it be accepted, is there a reason this is not available currently? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That would just work. Do you have the |
Beta Was this translation helpful? Give feedback.
Hi @JoshuaRHolden
That would just work. Do you have the
System.Linq
namespace imported?