DBNull is a special type that has to be handled carefully, when working with various objects of the .NET 2.0 Framework. Take care when reading/writing ADO.NET values because a null value could raise an InvalidCastException.
User Comments