I once read that having nullable types is an absolute evil. I believe it was in an article written by the very person who created them(in Ada?) I believe this is the article
Just开发者_StackOverflow curious. If you go: string myString; Its value is null. But if you go: int myInt;
I\'ve read many of the non-nullable questions and answers.It looks like the best way to get close to non-nullable types in C# (4.0) is Jon Skeet\'s NonNullable<> hack.
So far I\'ve been using I开发者_运维问答SNULL(dbo.fn_GetPrice(ItemId), 0) to make it not nullable (rather call it default-valued, but whatever).