Adding Dates to C#

Published on Author Michael

UPDATE: A bug was recently found when determining the difference between 2 dates across a year boundary. A corrected version has been uploaded to the site. In .NET the DateTime type represents both a date and a time. .NET doesn’t really have a pure date type. Ironically it does have a pure time type in… Continue reading Adding Dates to C#

Language Friendly Type Names

Published on Author Michael

.NET uses Type everywhere to represent type information.  Not surprisingly Type is language-agnostic.  In many cases it is useful to get the friendly (aka language-specific) name for a Type object.  .NET does not provide this easily.  There are several different approaches but none of them work really well if you want the name that would… Continue reading Language Friendly Type Names

Framework Compatibility Going Downhill

Published on Author Michael

UPDATE: My post triggered an e-mail exchange with Rowan Miller from the Entity Framework group.  He wanted to explain and clarify some of my comments around EF.  I’ve added them in the appropriate sections below.  Thanks for the clarifications Rowan! I understand the need for making some breaking changes to the framework as we transition… Continue reading Framework Compatibility Going Downhill