public class Parent{
public IEnumerable<Child> Children(Filters filter){
return new List<Child>() { new Child()};
}
}
public class Child{
public string Value(ChildrenFilter filter){
// Maybe return null, maybe return a string
}
}
I want to filter the Parent.Children collection depending if the Child.Value is different than null. ex: .Where(child => // child has Value);
But with the code above, I can't seem to use a middleware, as it runs before the Child.Value is called.
Is there a hook for me to apply the filtering logic after the Child.Value has been resolved?