InvalidatingCache in Namevalue Lists

InvalidatingCache in Namevalue Lists

Old forum URL: forums.lhotka.net/forums/t/4237.aspx


IanK posted on Friday, January 25, 2008

Hi

Is it possible to use reflection for example to identify all the namevalue lists in a WinForms application and the invoke the invalidateCache method on all these lists.  If not has anyone any quick alternatives for accomplishing this ?

 

Regards,

Iank

 

 

triplea replied on Friday, January 25, 2008

What if you add a custom attribute in a base NameValue class which all NameValue classes would extend and then as you sai use reflection to invalidate them?

Otherwise you can just create a static list (or something like that) and manually add all NVLs and then just loop through it to invalidate each one...

Copyright (c) Marimer LLC