I have a collection of objects which have a JobCode which is a string value. We have a business rule that says within the collection we should never have more than 4 elements who’s JobCode is the same. I am struggling with this because usually I am comparing against some known value external to the list rather than comparing the list to itself.
Any help much appreciated.
You can identify your bad jobs with:
It’s not clear what remedial action you wish to take…