Check Null bytes for IDataRecord

Niladri.Biswas
Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 476
public static byte CheckNullByte(this IDataRecord reader, int ordinal)
{
if (reader == null) throw new ArgumentNullException("reader");
return reader.IsDBNull(ordinal) ? byte.MinValue : reader.GetByte(ordinal);
}

Comments or Responses

Login to post response