Sean's Blog

My Development Blog

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 99 Comments | 0 Trackbacks

News

Twitter












Archives

.NET Development

September 2011 Entries

If you've ever needed to convert a Nullable<T> type to a its default, non-nullable value when its nullable value is null, here's a handy extension method to help you out. public static T NullableToValue<T>(this T? value) where T : struct { return value ?? default(T); }