Visual Studio (3)

MemoryCache doesn’t persist when attached to Visual Studio Debugger

With .NET 4.0, System.Runtime.Caching MemoryCache can be used to persist large object collections for better performance. This works great when your web application is published to a server. When debugging in Visual Studio, you’ll find that the cache object will be empty at random times. This is apparently caused by a bug in .NET 4.0. […]

ASP.NET MVC Validation with Twitter’s Bootstrap

To all ASP.NET MVC developers who use Twitter’s bootstrap, here’s a quick script you can drop into your web apps to integrate “MVC type” validation with Bootstrap styling. Keep in mind, I didn’t write this from scratch. I found several snippets on StackOverflow and dumped them into a js file so it may need tweaking […]

String vs StringBuilder

Recently I was asked the question if I knew the difference between a String and StringBuilder. The expected answer, which was not my answer, was String is immutable while StringBuilder is mutable. My ill-informed response was, “String is not immutable. I constantly change the values of Strings in my code.” The response I got was, […]