I need to build up a List and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is
Something like this perhaps?
using System;
using System.Collections.Generic;
using System.Web;
public class MyListCache
{
private List
As for how to use.....
// Get an instance
var listCache = new MyListCache();
// Add something
listCache.MyList.Add(someObject);
// Enumerate
foreach(var o in listCache.MyList) {
Console.WriteLine(o.ToString());
}
// Blow it away
listCache.ClearList();