Can you give me a good example of using a predicate that does not involve a collection, list, enumerator or IEnumerable? -
Can you give me a good example of using a predicate that does not involve a collection, list, enumerator or IEnumerable? -
the title pretty much asks want -- illustration of using predicates don't involve iterating on collection, using ienumerable, or that.
i don't care language use, or if provide code example. i'd grateful if described simple illustration illustrates predicates without usual uses.
i'm working on article , i'm stumped, examples gratefully received , credited.
in 1 project have manually implemented cache dependencies using predicates.
whenever new item set in cache depends on cached item, predicate delegate created check whether dependency still valid or whether cached item has invalidated.
whenever cached item accessed, , had dependency check predicate assigned, checked before cached item returned.
if course of study solved without using predicates, solution pretty elegant , enabled implementing cache dependencies injecting depency checking method.
predicate
Comments
Post a Comment