There is also C # DataType " short ", which is System.Int16 (aka " smallint " in SQL Server).
I prefer to use βshortβ just because, in my opinion, it looks cooler and not for any other reason.
Also, I would use the following to pull your data (if this value is null):
short? sVal = dr["ColName"] is System.DBNull ? null : (short?)(dr["ColName"]);
MikeTeeVee
source share