views:

31

answers:

1

C# Win Forms Application, requires caching of function's return values, that should be based on the parameters so if function's parameters changes while calling the function it must call again, but for same parameters it should return the value directly from cache, is there any existing C# facility available or any rapid easy technique or link would appreciate.

Thanks

+3  A: 

This technique is called memoization. This post from Bart de Smet's blog should get you started:

dtb