Example #1
0
 private void PinObject(Entry e, IPersistent obj)
 {
     if (pinLimit != 0)
     {
         if (e.pin != null)
         {
             e.Unlink();
         }
         else
         {
             if (nPinned == pinLimit)
             {
                 pinList.lru.Unpin();
             }
             else
             {
                 nPinned += 1;
             }
         }
         e.LinkAfter(pinList, obj);
     }
 }