.net - Byte to integer in C# -


I'm reading a row from a SQL Server table, one of the columns is of the tint.

I want to get the value in an int or int32 variable.

  rdr.GetByte (j) (byte) rdr. GetValue (j)  

... is the only way to get the value. But how do I get the result in the int variable?

int value = RDR. Getbyte (j);

A clear artist is not required, because byte to int widen the conversion (no possibility of data loss).


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -