A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

How to filter on dynamic property EPIFind 13.0.4

Vote:
 

I want to be able to do a filter InRange for a dynamic property of a pageobject.

internal override ITypeSearch Apply(ITypeSearch query, string key)
{
    return query.Filter(x => ((int)x[key]).InRange(Min, Max));

    // Or like this
    return query.Filter(x => ((int)x.GetType().GetProperty(key).GetValue(x)).InRange(Min, Max));
}

But both don't work. Can I do this another way?

#198556
Oct 31, 2018 8:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.