Thread-Safe, Strongly-Typed Memory Caching in C#

Quick and simple. This extension adds a strongly-typed version of AddOrGetExisting that utilizes Lazy<T> to ensure thread-safety. public static class ObjectCacheExtensions { public static T AddOrGetExisting<T »

Stop using [Bind]

There's a lot to like about ASP.NET MVC, but some parts are just atrocious. The Bind attribute is one of those atrocious parts. For the seemingly few who are »

A Truly Generic Repository, Part 2

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class A Truly Generic Repository, Part »

A Truly Generic Repository, Part 1

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class A Truly Generic Repository, Part »

Generic Entity Base Class

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class (this article) A Truly Generic »

Getting a partial URL From Request.Url

Even after almost 4 years working with ASP.NET, I can still never remember what property I need from Request.Url. So, as much to aid my own brain as »