value is DBNull really checks if value instance of the DBNull class, while value == DBNull.Value actually does a reference comparison between value and a single instance of the singleton DBNull class.
value is DBNull checks if value instance of DBNull , which is only possible if value == DBNull.Value , since DBNull is single.
The advantage of using value == DBNull.Value is that it does a direct comparative comparison, which will be more efficient than defining types for comparing is DBNull .
Thorsten dittmar
source share