public static void CacheThis <T, TId>(this List <T> list) { foreach (var c in list) { if (c is ICacheContainerEnabled <TId> ) { CacheContainer <TId> .Cache((ICacheContainerEnabled <TId>) c); } } }
public static void CacheThis <TId>(this ICacheContainerEnabled <TId> c) { CacheContainer <TId> .Cache(c); }