On Sat, 2007-07-21 at 10:38 -0300, Rafael Teixeira wrote:
> No, you should call the method that tells if the field is null (
> IsDBNull() see 
> http://msdn2.microsoft.com/en-us/library/system.data.idatarecord.isdbnull(VS.80).aspx),
> and then call GetString() only if it returns false.

or: if (reader[offset + 1] != DBNull) ....

-- 
Regards,

Mirco 'meebey' Bauer

PGP-Key ID: 0xEEF946C8

FOSS Developer    [EMAIL PROTECTED]  http://www.meebey.net/
PEAR Developer    [EMAIL PROTECTED]     http://pear.php.net/
Debian Developer  [EMAIL PROTECTED]  http://www.debian.org/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to