I wanted to create a custom condition and then use it in the SearchCriteria, but it does not seem possible.
Basically I want to create a ContainsCondition which passes if the text being searched simply contains some subset. ie. Contains("Hello") passes if the element name is "Hello World"
First I tried creating a class inheriting from SearchCondition, no go because of required ToString override
Then I inherited from NameCondition and overrode Satisfies, which is fine..
But there seems to be no way to put my custom condition into a SearchCriteria.
Is what I am trying possible? Are there alternatives?