Conversion of GetSQLByte to byte

F

Fred Herring

When using an sqldatareader, is it most efficient to use the "GetSqlByte" as
compared to "GetByte". If so, how is data of GetSqlByte converted to net
byte format.

Thanks,
Fred Herring
 
M

Mujtaba Syed

The System.Data.SqlTypes.SqlByte structure defines an explicit conversion
operator to the System.Byte structure

public static explicit operator byte (SqlByte x);

Thanks.
Mujtaba.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top