ado.net - Null value in DataTable -


i quite surprised how come following code working without getting nullreferenceexception exception?

table.rows[0][1] = null; console.writeline(table.rows[0][1].tostring()); 

could explain?

that's because item set instance of system.dbnull rather null.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -