예제 #1
0
 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);
         }
     }
 }
예제 #2
0
 public static void CacheThis <TId>(this ICacheContainerEnabled <TId> c)
 {
     CacheContainer <TId> .Cache(c);
 }