Rob's Blog Posts for November 2010
A cool List .Sort() extension method via lambda
Here’s an awesome List<T>.Sort() extension method:
public static List<T> Sort<T,U> ( this List<T> Source, Func<T,U> OrderFunc ) { return Source....
Google Maps JavaScript API v3 Demo
I was honored to speak at the Google Technology User Group last night. To combine a love of JavaScript, a very powerful tool, and an audience of enthusiastic fans is an incredible joy....
Get all Enum values as a List
Often times it’s helpful to get a list of all defined values for an enum. Enum....
GetCookies Safely
The broken code:
HttpCookie cookie = Request.Cookies["cookiename"]; if ( cookie != null && !string.IsNullOrEmpty( cookie.Value ) ) { The problem: this code will create an entry named “cookiename” in the Request’s Cookies dictionary....