<p>Does any one have a preference on how to check if a value is <code>DBNull</code>?  I've found these two statements give me the results I want, but just wondering if there's a preference?</p>

<p><code>if (any is System.DBNull)</code></p>

<p>same as:</p>

<p><code>if (any == System.DBNull.Value)</code></p>

<p>Thanks!</p>

```
```
if (any == System.DBNull.Value) ...
```
```
I prefer that one, simply because I read that as comparing values, not types.