views:

440

answers:

2
+2  Q: 

Winform Caching

Hi, Is there a Winform caching library out there? I need to pass a few datasets aroung in a Winform Application, and probably persist to storage upon close.

I've seen some samples around via Google, using System.Web.

What's the recommendation and where can I get some details. I am using VS 2008 for 2.0. 3.0 Framework.

Thanks

+2  A: 

Starting with .NET 2.0 you can use the System.Web.Caching.Cache class with non-ASP.NET apps. The Microsoft recommended approach these days though is to use the Enterprise Library Caching Application Block.

cruizer
I am aware of these, but was checking for a lightweight alternative.
Saif Khan
A: 

If you want to persist the dataset to some temporary storage mechanism then DataSet does support ToXml() and FromXml() capabilities (I forget the exact method names).

Quibblesome