caching nominee results


i have c# slight accepts predicate<foo> advantage list relating items...



public stationary list<foo> findall( predicate<foo> filter )
{
...
}


the filter mostly common set...



public stationary category foopredicates
{
open stationary readonly predicate<foo> iseligible = ( foo => ...)
...
}


...but competence an opposite delegate.



i'd have slight cache the law asp.net cache, steady calls same nominee only relapse cached result. this, i need emanate cache pivotal delegate. delegate.gethashcode() furnish essential law purpose? there member nominee i should feeling at? another proceed entirely?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?