Re: object to a byte[]: revisit
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 11 Jan 2006 20:15:20 -0000
Pohihihi <noemail@xxxxxxxxxxx> wrote:
> I guess I miss the part of casting as array (?)
>
> you mean
>
> byte[] b = (byte[])row["SomeColName"];
Yup.
> never did this before but surely will try if this works, until now I was
> only doing (byte) and never tried (byte[]). For the return type I am
> positive that it will return byte[] or DBNull in case empty col.
Right. Casting to byte certainly wouldn't work.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- References:
- object to a byte[]: revisit
- From: Pohihihi
- Re: object to a byte[]: revisit
- From: Jon Skeet [C# MVP]
- Re: object to a byte[]: revisit
- From: Pohihihi
- object to a byte[]: revisit
- Prev by Date: Re: object to a byte[]: revisit
- Next by Date: Re: Debugging a logon process event
- Previous by thread: Re: object to a byte[]: revisit
- Next by thread: Re: object to a byte[]: revisit
- Index(es):
Relevant Pages
|