I have a DataSet that I would like to cache in the ASP.NET's web cache. The content does not change very often and a cache of a few hours should work.
My problem is that when I create the DataSet, I get a CA2000 warning about dispose needing to be called. However, some articles say that I can cache the DataSet. I don't believe the DataSet directly implements Dispose; however, it is derived from a class that does.
What is the best way to cache a DataSet so I do not receive the CA2000 warning?