Ayende @ Rahien

Unnatural acts on source code

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

No comments posted yet.

Comments have been closed on this topic.