October 13, 2007

Working with Nullable Types in C#

orking with value types was sometimes awkward in .NET 1.x, because they could cause serious problems in applications that retrieved data from database tables containing columns that can have null values?those that may or may not hold data. C# 2.0 presents a new concept called “nullable types” that lets you