using System; namespace JD.Collections { /// /// Caches values based on a key. /// public class KeyedCache : KeyedCacheBase { /// /// Returns the value for the key, (if not cached, will use the provider). /// /// /// /// public TValue this[TKey key, Func provider] { get { return base[key, delegate { return provider(); }]; } } } }