I am using a SQLDataReader to insert column data into a string[].
However, some of the column values are null. I am a little unsure how to check for this because when I do reader[column_pos] it says the value is "n/a".
What check can I perform so that I could do something like:
for(int i=0; i<myarray.Length;i++){
if(something){
myarray[i] = reader[i];
}
else
{
myarray[i] = "";
}
}
and insert a blank sting whenver there is a null in the column.