Here is a fun bug...
Can you spot the bug in here?
        HttpRuntime.Cache.Add(key, dic,
                    null,
                    DateTime.Today.AddHours(1),
                    Cache.NoSlidingExpiration,
                    CacheItemPriority.AboveNormal, null);
        Debug.Assert( HttpRuntime.Cache[key] != null );    
It is a very nefarious one...
 

Comments
Comment preview